feat(@graphql-hive/cli): json output #16826
Annotations
8 errors
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'whoami' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing "registry.accessToken"
+ Error: Missing "registry.accessToken"
+ at Whoami.ensure (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:303:11)
+ at Whoami.runResult (/home/runner/work/console/console/packages/libraries/cli/src/commands/whoami.ts:100:24)
+ at async Whoami.run (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:42:28)
+ at async Whoami._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:311:22)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'schema:publish' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
@@ -1,17 +1,24 @@
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing 1 required arg:
+ Error: Missing 1 required arg:
- › file Path to the schema file(s)
+ file Path to the schema file(s)
- ›
- › Note: --require allows multiple values. Because of this you need to
- › provide all arguments before providing that flag.
+
+ Note: --require allows multiple values. Because of this you need to provide all arguments before providing that flag.
- › Alternatively, you can use "--" to signify the end of the flags and the
+ Alternatively, you can use "--" to signify the end of the flags and the beginning of arguments.
+ See more help with --help
- › beginning of arguments.
- › See more help with --help
+ at validateArgs (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:46:19)
+ at validate (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:190:5)
+ at Object.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/index.js:19:35)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async SchemaPublish.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:253:25)
+ at async SchemaPublish.init (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:168:29)
+ at async SchemaPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:310:13)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
USAGE
$ hive schema:publish FILE [--json] [--debug] [--service <value>] [--url
<value>] [--metadata <value>] [--registry.endpoint <value>] [--registry
<value>] [--registry.accessToken <value>] [--token <value>] [--author
@@ -49,6 +56,6 @@
GLOBAL FLAGS
--json Format output as json.
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'schema:check' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
@@ -1,17 +1,24 @@
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing 1 required arg:
+ Error: Missing 1 required arg:
- › file Path to the schema file(s)
+ file Path to the schema file(s)
- ›
- › Note: --require allows multiple values. Because of this you need to
- › provide all arguments before providing that flag.
+
+ Note: --require allows multiple values. Because of this you need to provide all arguments before providing that flag.
- › Alternatively, you can use "--" to signify the end of the flags and the
- › beginning of arguments.
- › See more help with --help
+ Alternatively, you can use "--" to signify the end of the flags and the beginning of arguments.
+ See more help with --help
+ at validateArgs (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:46:19)
+ at validate (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:190:5)
+ at Object.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/index.js:19:35)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async SchemaCheck.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:253:25)
+ at async SchemaCheck.init (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:168:29)
+ at async SchemaCheck._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:310:13)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
USAGE
$ hive schema:check FILE [--json] [--debug] [--service <value>]
[--registry.endpoint <value>] [--registry <value>] [--registry.accessToken
<value>] [--token <value>] [--forceSafe] [--github] [--require <value>]
@@ -40,6 +47,6 @@
GLOBAL FLAGS
--json Format output as json.
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'schema:delete' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
@@ -1,12 +1,21 @@
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing 1 required arg:
+ Error: Missing 1 required arg:
- › service name of the service
- › See more help with --help
+ service name of the service
+ See more help with --help
+ at validateArgs (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:46:19)
+ at validate (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:190:5)
+ at Object.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/index.js:19:35)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async SchemaDelete.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:253:25)
+ at async SchemaDelete.init (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:168:29)
+ at async SchemaDelete._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:310:13)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
USAGE
$ hive schema:delete SERVICE [--json] [--debug] [--registry.endpoint
<value>] [--registry <value>] [--registry.accessToken <value>] [--token
<value>] [--dryRun] [--confirm]
@@ -27,6 +36,6 @@
GLOBAL FLAGS
--json Format output as json.
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'schema:fetch' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
@@ -1,12 +1,21 @@
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing 1 required arg:
+ Error: Missing 1 required arg:
- › actionId action id (e.g. commit sha)
+ actionId action id (e.g. commit sha)
- › See more help with --help
+ See more help with --help
+ at validateArgs (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:46:19)
+ at validate (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:190:5)
+ at Object.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/index.js:19:35)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async SchemaFetch.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:253:25)
+ at async SchemaFetch.init (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:168:29)
+ at async SchemaFetch._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:310:13)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
USAGE
$ hive schema:fetch ACTIONID [--json] [--debug] [--registry <value>]
[--token <value>] [--registry.endpoint <value>] [--registry.accessToken
<value>] [--type <value>] [--write <value>] [--outputFile <value>]
@@ -29,6 +38,6 @@
GLOBAL FLAGS
--json Format output as json.
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'app:create' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
@@ -1,12 +1,21 @@
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: Missing 1 required arg:
+ Error: Missing 1 required arg:
- › file Path to the persisted operations mapping.
+ file Path to the persisted operations mapping.
- › See more help with --help
+ See more help with --help
+ at validateArgs (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:46:19)
+ at validate (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:190:5)
+ at Object.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/index.js:19:35)
+ at processTicksAndRejections (node:internal/process/task_queues:105:5)
+ at async AppCreate.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:253:25)
+ at async AppCreate.init (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:168:29)
+ at async AppCreate._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:310:13)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
USAGE
$ hive app:create FILE --name <value> --version <value> [--json]
[--debug] [--registry.endpoint <value>] [--registry.accessToken <value>]
@@ -23,6 +32,6 @@
GLOBAL FLAGS
--json Format output as json.
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests:
integration-tests/tests/cli/cli-error-user-input.spec.ts#L37
Error: Snapshot `CLIErrorUserInput - { command: 'app:publish' } > OUTPUT FORMAT: TEXT 1` mismatched
- Expected
+ Received
:::::::::::::::: CLI FAILURE OUTPUT :::::::::::::::
exitCode------------------------------------------:
2
stderr--------------------------------------------:
- › Error: The following errors occurred:
+ Error: The following errors occurred:
- › Missing required flag name
+ Missing required flag name
- › Missing required flag version
+ Missing required flag version
- › See more help with --help
+ See more help with --help
+ at validateFlags (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/validate.js:74:19)
+ at async Object.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/parser/index.js:19:5)
+ at async AppPublish.parse (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:253:25)
+ at async AppPublish.init (/home/runner/work/console/console/packages/libraries/cli/src/base-command.ts:168:29)
+ at async AppPublish._run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/command.js:310:13)
+ at async Config.runCommand (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/config/config.js:433:25)
+ at async run (/home/runner/work/console/console/node_modules/.pnpm/@oclif+core@3.26.6_patch_hash=rmd5oidpiuzwrwylcphsrfavay/node_modules/@oclif/core/lib/main.js:92:16)
stdout--------------------------------------------:
- __NONE__
+ {}
❯ tests/cli/cli-error-user-input.spec.ts:37:3
|
run integration tests
Process completed with exit code 1.
|
Loading