Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions src/commands/report/cmd-report-create.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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\`.
Expand Down
5 changes: 2 additions & 3 deletions src/commands/report/cmd-report-view.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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\`.
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('socket repos create', async () => {
"Create a repository in an organization

Usage
$ socket repos create <org slug>
$ socket repos create <org slug> --repo-name=<name>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const config: CliCommandConfig = {
},
help: (command, config) => `
Usage
$ ${command} <org slug>
$ ${command} <org slug> --repo-name=<name>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('socket repos update', async () => {
"Update a repository in an organization

Usage
$ socket repos update <org slug>
$ socket repos update <org slug> --repo-name=<name>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const config: CliCommandConfig = {
},
help: (command, config) => `
Usage
$ ${command} <org slug>
$ ${command} <org slug> --repo-name=<name>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-view.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('socket repos view', async () => {
"View repositories in an organization

Usage
$ socket repos view <org slug>
$ socket repos view <org slug> --repo-name=<name>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const config: CliCommandConfig = {
},
help: (command, config) => `
Usage
$ ${command} <org slug>
$ ${command} <org slug> --repo-name=<name>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/scan/cmd-scan-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('socket scan metadata', async () => {
"Get a scan's metadata

Usage
$ socket scan metadata <org slug> <scan id>
$ socket scan metadata <org slug> <scan ID>

API Token Requirements
- Quota: 1 unit
Expand Down
2 changes: 1 addition & 1 deletion src/commands/scan/cmd-scan-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const config: CliCommandConfig = {
},
help: (command, config) => `
Usage
$ ${command} <org slug> <scan id>
$ ${command} <org slug> <scan ID>

API Token Requirements
- Quota: 1 unit
Expand Down