Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --force option to spo site appcatalog remove command #6091

Closed
milanholemans opened this issue Jun 12, 2024 · 6 comments
Closed

Add --force option to spo site appcatalog remove command #6091

milanholemans opened this issue Jun 12, 2024 · 6 comments

Comments

@milanholemans
Copy link
Contributor

Noticed that the command spo site appcatalog remove doesn't have a force parameter. Destructive commands should ask for confirmation.

Let's add option:

Option Description
-f, --force Don't prompt for confirmation
@Adam-it
Copy link
Contributor

Adam-it commented Jun 16, 2024

TBH since this is a typical thing we have I wonder if we shouldn't consider this as bug and resolve this before v8.
@pnp/cli-for-microsoft-365-maintainers what you think?

@MathijsVerbeeck
Copy link
Contributor

TBH since this is a typical thing we have I wonder if we shouldn't consider this as bug and resolve this before v8. @pnp/cli-for-microsoft-365-maintainers what you think?

Scripts that currently are using this command will break, so it is a breaking change imo.

@milanholemans
Copy link
Contributor Author

milanholemans commented Jun 16, 2024

Scripts that currently are using this command will break, so it is a breaking change imo.

That is exactly what I was thinking. Existing scripts will fail if we don't treat this as a breaking change. You can use this command just fine as it's documented right now.

We have another example in our v5.0.0 release: https://pnp.github.io/cli-microsoft365/v5-upgrade-guidance#extended-entra-oauth2grant-remove-with-confirm

@Adam-it
Copy link
Contributor

Adam-it commented Jul 7, 2024

Since we have v8 branch we may now start working on it!
Let's get this 🚢
and Let's put CLI to the 🚀🌙

@Saurabh7019
Copy link
Contributor

Can I work on it?

@Adam-it
Copy link
Contributor

Adam-it commented Aug 11, 2024

merged to v9

@Adam-it Adam-it closed this as completed Aug 11, 2024
milanholemans pushed a commit to milanholemans/cli-microsoft365 that referenced this issue Sep 1, 2024
ktskumar pushed a commit to ktskumar/cli-microsoft365 that referenced this issue Oct 8, 2024
ktskumar pushed a commit to ktskumar/cli-microsoft365 that referenced this issue Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants