diff --git a/src/commands/report/cmd-report-create.ts b/src/commands/report/cmd-report-create.ts index caa2c9dbb..2ec7458b5 100644 --- a/src/commands/report/cmd-report-create.ts +++ b/src/commands/report/cmd-report-create.ts @@ -1,6 +1,6 @@ import { logger } from '@socketsecurity/registry/lib/logger' -import { commonFlags, outputFlags, validationFlags } from '../../flags' +import { commonFlags, outputFlags } from '../../flags' import { meowOrExit } from '../../utils/meow-with-subcommands' import type { CliCommandConfig } from '../../utils/meow-with-subcommands' @@ -11,19 +11,7 @@ const config: CliCommandConfig = { hidden: false, flags: { ...commonFlags, - ...outputFlags, - ...validationFlags, - dryRun: { - type: 'boolean', - default: false, - description: 'Only output what will be done without actually doing it' - }, - view: { - type: 'boolean', - shortFlag: 'v', - default: false, - description: 'Will wait for and return the created report' - } + ...outputFlags }, help: () => ` This command is deprecated in favor of \`socket scan view\`. diff --git a/src/commands/report/cmd-report-view.ts b/src/commands/report/cmd-report-view.ts index ca6c1b58d..5d33890af 100644 --- a/src/commands/report/cmd-report-view.ts +++ b/src/commands/report/cmd-report-view.ts @@ -1,6 +1,6 @@ import { logger } from '@socketsecurity/registry/lib/logger' -import { commonFlags, outputFlags, validationFlags } from '../../flags' +import { commonFlags, outputFlags } from '../../flags' import { meowOrExit } from '../../utils/meow-with-subcommands' import type { CliCommandConfig } from '../../utils/meow-with-subcommands' @@ -11,8 +11,7 @@ const config: CliCommandConfig = { hidden: false, flags: { ...commonFlags, - ...outputFlags, - ...validationFlags + ...outputFlags }, help: () => ` This command is deprecated in favor of \`socket scan view\`. diff --git a/src/commands/repos/cmd-repos-create.test.ts b/src/commands/repos/cmd-repos-create.test.ts index c4704043f..6d9c3575a 100644 --- a/src/commands/repos/cmd-repos-create.test.ts +++ b/src/commands/repos/cmd-repos-create.test.ts @@ -21,7 +21,7 @@ describe('socket repos create', async () => { "Create a repository in an organization Usage - $ socket repos create + $ socket repos create --repo-name= API Token Requirements - Quota: 1 unit diff --git a/src/commands/repos/cmd-repos-create.ts b/src/commands/repos/cmd-repos-create.ts index 857ed4ca7..bc6827b0e 100644 --- a/src/commands/repos/cmd-repos-create.ts +++ b/src/commands/repos/cmd-repos-create.ts @@ -52,7 +52,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} + $ ${command} --repo-name= API Token Requirements - Quota: 1 unit diff --git a/src/commands/repos/cmd-repos-update.test.ts b/src/commands/repos/cmd-repos-update.test.ts index 08ba56941..4adcbfef7 100644 --- a/src/commands/repos/cmd-repos-update.test.ts +++ b/src/commands/repos/cmd-repos-update.test.ts @@ -21,7 +21,7 @@ describe('socket repos update', async () => { "Update a repository in an organization Usage - $ socket repos update + $ socket repos update --repo-name= API Token Requirements - Quota: 1 unit diff --git a/src/commands/repos/cmd-repos-update.ts b/src/commands/repos/cmd-repos-update.ts index 4eeeabac0..d63927d65 100644 --- a/src/commands/repos/cmd-repos-update.ts +++ b/src/commands/repos/cmd-repos-update.ts @@ -52,7 +52,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} + $ ${command} --repo-name= API Token Requirements - Quota: 1 unit diff --git a/src/commands/repos/cmd-repos-view.test.ts b/src/commands/repos/cmd-repos-view.test.ts index 42cc07540..b8671dda2 100644 --- a/src/commands/repos/cmd-repos-view.test.ts +++ b/src/commands/repos/cmd-repos-view.test.ts @@ -21,7 +21,7 @@ describe('socket repos view', async () => { "View repositories in an organization Usage - $ socket repos view + $ socket repos view --repo-name= API Token Requirements - Quota: 1 unit diff --git a/src/commands/repos/cmd-repos-view.ts b/src/commands/repos/cmd-repos-view.ts index 0c1cb0400..db6ad9792 100644 --- a/src/commands/repos/cmd-repos-view.ts +++ b/src/commands/repos/cmd-repos-view.ts @@ -28,7 +28,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} + $ ${command} --repo-name= API Token Requirements - Quota: 1 unit diff --git a/src/commands/scan/cmd-scan-metadata.test.ts b/src/commands/scan/cmd-scan-metadata.test.ts index 47f259e7c..8394a5783 100644 --- a/src/commands/scan/cmd-scan-metadata.test.ts +++ b/src/commands/scan/cmd-scan-metadata.test.ts @@ -21,7 +21,7 @@ describe('socket scan metadata', async () => { "Get a scan's metadata Usage - $ socket scan metadata + $ socket scan metadata API Token Requirements - Quota: 1 unit diff --git a/src/commands/scan/cmd-scan-metadata.ts b/src/commands/scan/cmd-scan-metadata.ts index 0b0a853f5..6a9d09759 100644 --- a/src/commands/scan/cmd-scan-metadata.ts +++ b/src/commands/scan/cmd-scan-metadata.ts @@ -26,7 +26,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} + $ ${command} API Token Requirements - Quota: 1 unit