Merge pull request #13518 from backstage/rugvip/nodiff

cli: deprecate plugin:diff command
This commit is contained in:
Patrik Oldsberg
2022-09-05 10:30:33 +02:00
committed by GitHub
63 changed files with 21 additions and 76 deletions
-12
View File
@@ -13,7 +13,6 @@ Options:
Commands:
new [options]
plugin:diff [options]
test
config:docs [options]
config:print [options]
@@ -380,17 +379,6 @@ Options:
--watchman
```
### `backstage-cli plugin:diff`
```
Usage: backstage-cli plugin:diff [options]
Options:
--check
--yes
-h, --help
```
### `backstage-cli repo`
```
+4 -2
View File
@@ -264,10 +264,12 @@ export function registerCommands(program: Command) {
);
program
.command('plugin:diff')
.command('plugin:diff', { hidden: true })
.option('--check', 'Fail if changes are required')
.option('--yes', 'Apply all changes')
.description('Diff an existing plugin with the creation template')
.description(
'Diff an existing plugin with the creation template [DEPRECATED]',
)
.action(lazy(() => import('./plugin/diff').then(m => m.default)));
// TODO(Rugvip): Deprecate in favor of package variant