Skip to content

Commit 33874e8

Browse files
authored
update load help output to show all formats (#88)
* update load help output to show all formats, fix typo closes #87
1 parent 31a479d commit 33874e8

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.changeset/social-chefs-drive.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"varlock": patch
3+
---
4+
5+
Add additional format options to load command help

packages/varlock/src/cli/commands/load.command.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ export const commandSpec = define({
1111
description: 'Load env according to schema and resolve values',
1212
args: {
1313
format: {
14-
type: 'string',
14+
type: 'enum',
1515
short: 'f',
16-
description: 'Format of output (if not pretty printed to console)',
16+
choices: ['pretty', 'json', 'env', 'json-full'],
17+
description: 'Format of output',
1718
default: 'pretty',
1819
},
1920
'show-all': {
2021
type: 'boolean',
21-
description: 'When load is fialing, show all items rather than only failing items',
22+
description: 'When load is failing, show all items rather than only failing items',
2223
},
2324
env: {
2425
type: 'string',

0 commit comments

Comments
 (0)