cli: rename config:validate to config:check
This commit is contained in:
@@ -73,7 +73,7 @@ jobs:
|
||||
run: yarn prettier:check
|
||||
|
||||
- name: validate config
|
||||
run: yarn backstage-cli config:validate
|
||||
run: yarn backstage-cli config:check
|
||||
|
||||
- name: lint
|
||||
run: yarn lerna -- run lint --since origin/master
|
||||
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
# End of yarn setup
|
||||
|
||||
- name: validate config
|
||||
run: yarn backstage-cli config:validate
|
||||
run: yarn backstage-cli config:check
|
||||
|
||||
- name: lint
|
||||
run: yarn lerna -- run lint
|
||||
|
||||
@@ -85,9 +85,9 @@ declare the visibility of a leaf node of `type: "string"`.
|
||||
|
||||
## Validation
|
||||
|
||||
Schemas can be validated using the `backstage-cli config:validate` command. If
|
||||
you want to validate anything else than the default `app-config.yaml`, be sure
|
||||
to pass in all of the configuration files as `--config <path>` options as well.
|
||||
Schemas can be validated using the `backstage-cli config:check` command. If you
|
||||
want to validate anything else than the default `app-config.yaml`, be sure to
|
||||
pass in all of the configuration files as `--config <path>` options as well.
|
||||
|
||||
To validate and examine the frontend configuration, use the
|
||||
`backstage-cli config:print --frontend` command. Just like for validation you
|
||||
|
||||
+1
-1
@@ -43,7 +43,7 @@ custom `visibility` keyword, as configuration is by default only available in
|
||||
the backend.
|
||||
|
||||
You can validate your configuration against the schema using
|
||||
`backstage-cli config:validate`, and define a schema for your own plugin either
|
||||
`backstage-cli config:check`, and define a schema for your own plugin either
|
||||
using JSON Schema or TypeScript. For more information, see
|
||||
[Defining Configuration](./defining.md).
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ export function registerCommands(program: CommanderStatic) {
|
||||
.action(lazy(() => import('./config/print').then(m => m.default)));
|
||||
|
||||
program
|
||||
.command('config:validate')
|
||||
.command('config:check')
|
||||
.option(...configOption)
|
||||
.description(
|
||||
'Validate that the given configuration loads and matches schema',
|
||||
|
||||
Reference in New Issue
Block a user