Skip to content

Commit 93a1708

Browse files
committed
Make train case flags
1 parent 34cc9fe commit 93a1708

18 files changed

+70
-68
lines changed

src/commands/audit-log/cmd-audit-log.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function run(
8989
9090
Examples
9191
$ ${command}
92-
$ ${command} deleteReport --page 2 --perPage 10
92+
$ ${command} deleteReport --page 2 --per-page 10
9393
`,
9494
}
9595

src/commands/audit-log/cmd-audit-log.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('socket audit-log', async () => {
4949
5050
Examples
5151
$ socket audit-log
52-
$ socket audit-log deleteReport --page 2 --perPage 10"
52+
$ socket audit-log deleteReport --page 2 --per-page 10"
5353
`,
5454
)
5555
expect(`\n ${stderr}`).toMatchInlineSnapshot(`

src/commands/ci/cmd-ci.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ const config: CliCommandConfig = {
3636
Socket API token. The exit code will be non-zero when the scan does not pass
3737
your security policy.
3838
39-
The --autoManifest flag does the same as the one from \`socket scan create\`
39+
The --auto-manifest flag does the same as the one from \`socket scan create\`
4040
but is not enabled by default since the CI is less likely to be set up with
4141
all the necessary dev tooling. Enable it if you want the scan to include
4242
locally generated manifests like for gradle and sbt.
4343
4444
Examples
4545
$ ${command}
46-
$ ${command} --autoManifest
46+
$ ${command} --auto-manifest
4747
`,
4848
}
4949

src/commands/ci/cmd-ci.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ describe('socket ci', async () => {
2727
Socket API token. The exit code will be non-zero when the scan does not pass
2828
your security policy.
2929
30-
The --autoManifest flag does the same as the one from \`socket scan create\`
30+
The --auto-manifest flag does the same as the one from \`socket scan create\`
3131
but is not enabled by default since the CI is less likely to be set up with
3232
all the necessary dev tooling. Enable it if you want the scan to include
3333
locally generated manifests like for gradle and sbt.
3434
3535
Examples
3636
$ socket ci
37-
$ socket ci --autoManifest"
37+
$ socket ci --auto-manifest"
3838
`,
3939
)
4040
expect(`\n ${stderr}`).toMatchInlineSnapshot(`

src/commands/fix/cmd-fix.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async function run(
6161
autopilot: {
6262
type: 'boolean',
6363
default: false,
64-
description: `Shorthand for --autoMerge --test`,
64+
description: `Shorthand for --auto-merge --test`,
6565
},
6666
ghsa: {
6767
type: 'string',
@@ -146,7 +146,7 @@ Available styles:
146146
147147
Examples
148148
$ ${command}
149-
$ ${command} ./proj/tree --autoMerge
149+
$ ${command} ./proj/tree --auto-merge
150150
`,
151151
}
152152

src/commands/fix/cmd-fix.test.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('socket fix', async () => {
2626
Options
2727
--auto-merge Enable auto-merge for pull requests that Socket opens.
2828
See GitHub documentation (\\u200bhttps://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository\\u200b) for managing auto-merge for pull requests in your repository.
29-
--autopilot Shorthand for --autoMerge --test
29+
--autopilot Shorthand for --auto-merge --test
3030
--limit The number of fixes to attempt at a time (default 10)
3131
--min-satisfying Constrain dependency updates to the minimum satisfying version
3232
--purl Provide a list of PURLs (\\u200bhttps://github.com/package-url/purl-spec?tab=readme-ov-file#purl\\u200b) to compute fixes for, as either a comma separated value or as
@@ -46,7 +46,7 @@ describe('socket fix', async () => {
4646
4747
Examples
4848
$ socket fix
49-
$ socket fix ./proj/tree --autoMerge"
49+
$ socket fix ./proj/tree --auto-merge"
5050
`,
5151
)
5252
expect(`\n ${stderr}`).toMatchInlineSnapshot(`

src/commands/manifest/cmd-manifest-gradle.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async function run(
123123
if (!gradleOpts) {
124124
if (sockJson.defaults?.manifest?.gradle?.gradleOpts) {
125125
gradleOpts = sockJson.defaults?.manifest?.gradle?.gradleOpts
126-
logger.info('Using default --gradleOpts from socket.json:', gradleOpts)
126+
logger.info('Using default --gradle-opts from socket.json:', gradleOpts)
127127
} else {
128128
gradleOpts = ''
129129
}

src/commands/manifest/cmd-manifest-kotlin.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ async function run(
128128
if (!gradleOpts) {
129129
if (sockJson.defaults?.manifest?.gradle?.gradleOpts) {
130130
gradleOpts = sockJson.defaults?.manifest?.gradle?.gradleOpts
131-
logger.info('Using default --gradleOpts from socket.json:', gradleOpts)
131+
logger.info('Using default --gradle-opts from socket.json:', gradleOpts)
132132
} else {
133133
gradleOpts = ''
134134
}

src/commands/manifest/cmd-manifest-scala.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ async function run(
153153
if (!sbtOpts) {
154154
if (sockJson.defaults?.manifest?.sbt?.sbtOpts) {
155155
sbtOpts = sockJson.defaults?.manifest?.sbt?.sbtOpts
156-
logger.info('Using default --sbtOpts from socket.json:', sbtOpts)
156+
logger.info('Using default --sbt-opts from socket.json:', sbtOpts)
157157
} else {
158158
sbtOpts = ''
159159
}

src/commands/manifest/setup-manifest-config.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async function setupGradle(
267267
}
268268

269269
const opts = await input({
270-
message: '(--gradleOpts) Enter gradle options to pass through',
270+
message: '(--gradle-opts) Enter gradle options to pass through',
271271
default: config.gradleOpts || '',
272272
required: false,
273273
// validate: async string => bool
@@ -307,7 +307,7 @@ async function setupSbt(
307307
}
308308

309309
const opts = await input({
310-
message: '(--sbtOpts) Enter sbt options to pass through',
310+
message: '(--sbt-opts) Enter sbt options to pass through',
311311
default: config.sbtOpts || '',
312312
required: false,
313313
// validate: async string => bool

0 commit comments

Comments
 (0)