File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed
Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import { logger } from '@socketsecurity/registry/lib/logger'
66import { handleConfigGet } from './handle-config-get'
77import constants from '../../constants'
88import { commonFlags , outputFlags } from '../../flags'
9- import { LocalConfig , supportedConfigKeys } from '../../utils/config'
9+ import { supportedConfigKeys } from '../../utils/config'
1010import { meowOrExit } from '../../utils/meow-with-subcommands'
1111import { getFlagListOutput } from '../../utils/output-formatting'
1212
13+ import type { LocalConfig } from '../../utils/config'
1314import type { CliCommandConfig } from '../../utils/meow-with-subcommands'
1415
1516const { DRY_RUN_BAIL_TEXT } = constants
@@ -29,6 +30,12 @@ const config: CliCommandConfig = {
2930 Options
3031 ${ getFlagListOutput ( config . flags , 6 ) }
3132
33+ Keys:
34+
35+ ${ Array . from ( supportedConfigKeys . entries ( ) )
36+ . map ( ( [ key , desc ] ) => ` - ${ key } -- ${ desc } ` )
37+ . join ( '\n' ) }
38+
3239 Examples
3340 $ ${ command } FakeOrg --repoName=test-repo
3441 `
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { logger } from '@socketsecurity/registry/lib/logger'
33import { outputConfigList } from './output-config-list'
44import constants from '../../constants'
55import { commonFlags , outputFlags } from '../../flags'
6+ import { supportedConfigKeys } from '../../utils/config'
67import { meowOrExit } from '../../utils/meow-with-subcommands'
78import { getFlagListOutput } from '../../utils/output-formatting'
89
@@ -30,6 +31,12 @@ const config: CliCommandConfig = {
3031 Options
3132 ${ getFlagListOutput ( config . flags , 6 ) }
3233
34+ Keys:
35+
36+ ${ Array . from ( supportedConfigKeys . entries ( ) )
37+ . map ( ( [ key , desc ] ) => ` - ${ key } -- ${ desc } ` )
38+ . join ( '\n' ) }
39+
3340 Examples
3441 $ ${ command } FakeOrg --repoName=test-repo
3542 `
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import { logger } from '@socketsecurity/registry/lib/logger'
66import { handleConfigSet } from './handle-config-set'
77import constants from '../../constants'
88import { commonFlags , outputFlags } from '../../flags'
9- import { LocalConfig , supportedConfigKeys } from '../../utils/config'
9+ import { supportedConfigKeys } from '../../utils/config'
1010import { meowOrExit } from '../../utils/meow-with-subcommands'
1111import { getFlagListOutput } from '../../utils/output-formatting'
1212
13+ import type { LocalConfig } from '../../utils/config'
1314import type { CliCommandConfig } from '../../utils/meow-with-subcommands'
1415
1516const { DRY_RUN_BAIL_TEXT } = constants
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import { logger } from '@socketsecurity/registry/lib/logger'
66import { handleConfigUnset } from './handle-config-unset'
77import constants from '../../constants'
88import { commonFlags , outputFlags } from '../../flags'
9- import { LocalConfig , supportedConfigKeys } from '../../utils/config'
9+ import { supportedConfigKeys } from '../../utils/config'
1010import { meowOrExit } from '../../utils/meow-with-subcommands'
1111import { getFlagListOutput } from '../../utils/output-formatting'
1212
13+ import type { LocalConfig } from '../../utils/config'
1314import type { CliCommandConfig } from '../../utils/meow-with-subcommands'
1415
1516const { DRY_RUN_BAIL_TEXT } = constants
@@ -29,6 +30,12 @@ const config: CliCommandConfig = {
2930 Options
3031 ${ getFlagListOutput ( config . flags , 6 ) }
3132
33+ Keys:
34+
35+ ${ Array . from ( supportedConfigKeys . entries ( ) )
36+ . map ( ( [ key , desc ] ) => ` - ${ key } -- ${ desc } ` )
37+ . join ( '\n' ) }
38+
3239 Examples
3340 $ ${ command } FakeOrg --repoName=test-repo
3441 `
You can’t perform that action at this time.
0 commit comments