Skip to content

Commit 7beb847

Browse files
committed
Print flags in kebab case
1 parent f9fe7d6 commit 7beb847

22 files changed

+84
-68
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('socket audit-log', async () => {
4444
--markdown Output result as markdown
4545
--org Force override the organization slug, overrides the default org from config
4646
--page Result page to fetch
47-
--perPage Results per page - default is 30
47+
--per-page Results per page - default is 30
4848
4949
Examples
5050
$ socket audit-log

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ describe('socket ci', async () => {
2020
$ socket ci [options]
2121
2222
Options
23-
--autoManifest Auto generate manifest files where detected? See autoManifest flag in \`socket scan create\`
23+
--auto-manifest Auto generate manifest files where detected? See autoManifest flag in \`socket scan create\`
2424
2525
This command is intended to use in CI runs to allow automated systems to
26-
accept or reject a current build. When the scan does not pass your security
27-
policy, the exit code will be non-zero.
28-
29-
It will use the default org for the Socket API token.
26+
accept or reject a current build. It will use the default org of the
27+
Socket API token. The exit code will be non-zero when the scan does not pass
28+
your security policy.
3029
3130
The --autoManifest flag does the same as the one from \`socket scan create\`
3231
but is not enabled by default since the CI is less likely to be set up with

src/commands/cli.test.mts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,14 @@ describe('socket root command', async () => {
5454
uninstall Remove Socket CLI tab completion from your system
5555
wrapper Enable or disable the Socket npm/npx wrapper
5656
57-
Options (Note: all CLI commands have these flags even when not displayed in their help)
58-
59-
--config Allows you to temp overrides the internal CLI config
60-
--dryRun Do input validation for a sub-command and then exit
61-
--help Give you detailed help information about any sub-command
62-
--version Show version of CLI
57+
Options (Note: All CLI commands have these flags even when not displayed in their help)
58+
59+
--config Override the local config with this JSON
60+
--dry-run Do input validation for a command and exit 0 when input is ok
61+
--help Print this help
62+
--max-old-space-size Set the max memory size of V8's old memory section in megabytes
63+
--max-semi-space-size Set the maximum semi-space size for V8's scavenge garbage collector in megabytes
64+
--version Print the app version
6365
6466
Examples
6567
$ socket --help

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ describe('socket fix', async () => {
2020
$ socket fix [options] [CWD=.]
2121
2222
Options
23-
--autoMerge Enable auto-merge for pull requests that Socket opens.
23+
--auto-merge Enable auto-merge for pull requests that Socket opens.
2424
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.
2525
--autopilot Shorthand for --autoMerge --test
2626
--limit The number of fixes to attempt at a time (default 10)
27-
--minSatisfying Constrain dependency updates to the minimum satisfying version
27+
--min-satisfying Constrain dependency updates to the minimum satisfying version
2828
--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
2929
multiple flags, instead of querying the Socket API
30-
--rangeStyle Define how dependency version ranges are updated in package.json (default 'preserve').
30+
--range-style Define how dependency version ranges are updated in package.json (default 'preserve').
3131
Available styles:
3232
* caret - Use ^ range for compatible updates (e.g. ^1.2.3)
3333
* gt - Use > to allow any newer version (e.g. >1.2.3)
@@ -38,7 +38,7 @@ describe('socket fix', async () => {
3838
* preserve - Retain the existing version range style as-is
3939
* tilde - Use ~ range for patch/minor updates (e.g. ~1.2.3)
4040
--test Verify the fix by running unit tests
41-
--testScript The test script to run for fix attempts (default 'test')
41+
--test-script The test script to run for fix attempts (default 'test')
4242
4343
Examples
4444
$ socket fix

src/commands/login/attempt-login.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function attemptLogin(
3131
message: `Enter your ${terminalLink(
3232
'Socket.dev API token',
3333
'https://docs.socket.dev/docs/api-keys',
34-
)} (leave blank for a public key)`,
34+
)} (leave blank to use a limited public token)`,
3535
})
3636

3737
if (apiTokenInput === undefined) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ describe('socket login', async () => {
2525
Logs into the Socket API by prompting for an API token
2626
2727
Options
28-
--apiBaseUrl API server to connect to for login
29-
--apiProxy Proxy to use when making connection to API server
28+
--api-base-url API server to connect to for login
29+
--api-proxy Proxy to use when making connection to API server
3030
3131
Examples
3232
$ socket login

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('socket manifest gradle', async () => {
2121
2222
Options
2323
--bin Location of gradlew binary to use, default: CWD/gradlew
24-
--gradleOpts Additional options to pass on to ./gradlew, see \`./gradlew --help\`
24+
--gradle-opts Additional options to pass on to ./gradlew, see \`./gradlew --help\`
2525
--verbose Print debug messages
2626
2727
Uses gradle, preferably through your local project \`gradlew\`, to generate a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('socket manifest kotlin', async () => {
2121
2222
Options
2323
--bin Location of gradlew binary to use, default: CWD/gradlew
24-
--gradleOpts Additional options to pass on to ./gradlew, see \`./gradlew --help\`
24+
--gradle-opts Additional options to pass on to ./gradlew, see \`./gradlew --help\`
2525
--verbose Print debug messages
2626
2727
Uses gradle, preferably through your local project \`gradlew\`, to generate a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('socket manifest scala', async () => {
2222
Options
2323
--bin Location of sbt binary to use
2424
--out Path of output file; where to store the resulting manifest, see also --stdout
25-
--sbtOpts Additional options to pass on to sbt, as per \`sbt --help\`
25+
--sbt-opts Additional options to pass on to sbt, as per \`sbt --help\`
2626
--stdout Print resulting pom.xml to stdout (supersedes --out)
2727
--verbose Print debug messages
2828

src/commands/manifest/cmd-manifest-setup.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('socket manifest setup', async () => {
2020
$ socket manifest setup [CWD=.]
2121
2222
Options
23-
--defaultOnReadErrorIf reading the socket.json fails, just use a default config? Warning: This might override the existing json file!
23+
--default-on-read-error If reading the socket.json fails, just use a default config? Warning: This might override the existing json file!
2424
2525
This command will try to detect all supported ecosystems in given CWD. Then
2626
it starts a configurator where you can setup default values for certain flags

0 commit comments

Comments
 (0)