cli: rename config:validate to config:check

This commit is contained in:
Patrik Oldsberg
2020-11-17 18:26:40 +01:00
parent 0b97a89f55
commit 80bf8c7f4f
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+3 -3
View File
@@ -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
View File
@@ -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).
+1 -1
View File
@@ -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',