Skip to content

Commit 1be54c8

Browse files
authored
Unhide package commands with beta tag (#418)
* Unhide package commands with beta tag * dot
1 parent d08520e commit 1be54c8

File tree

8 files changed

+13
-8
lines changed

8 files changed

+13
-8
lines changed

src/commands/info/cmd-info.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ describe('socket info', async () => {
2323
Usage
2424
$ socket info <name>
2525
26+
Note: this command will be deprecated in favor of \`socket package score\` soon
27+
2628
Options
2729
--all Include all issues
2830
--dryRun Do input validation for a command and exit 0 when input is ok

src/commands/info/cmd-info.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ const config: CliCommandConfig = {
2424
Usage
2525
$ ${command} <name>
2626
27+
Note: this command will be deprecated in favor of \`socket package score\` soon
28+
2729
Options
2830
${getFlagListOutput(config.flags, 6)}
2931

src/commands/package/cmd-package-score.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('socket package score', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Look up score for one package which reflects all of its transitive dependencies as well
21+
"[beta] Look up score for one package which reflects all of its transitive dependencies as well
2222
2323
Usage
2424
$ socket package score <<ecosystem> <name> | <purl>>

src/commands/package/cmd-package-score.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const { DRY_RUN_BAIL_TEXT } = constants
1616
const config: CliCommandConfig = {
1717
commandName: 'score',
1818
description:
19-
'Look up score for one package which reflects all of its transitive dependencies as well',
20-
hidden: true,
19+
'[beta] Look up score for one package which reflects all of its transitive dependencies as well',
20+
hidden: false,
2121
flags: {
2222
...commonFlags,
2323
...outputFlags

src/commands/package/cmd-package-shallow.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe('socket package shallow', async () => {
1818
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
1919
expect(stdout).toMatchInlineSnapshot(
2020
`
21-
"Look up info regarding one or more packages but not their transitives
21+
"[beta] Look up info regarding one or more packages but not their transitives
2222
2323
Usage
2424
$ socket package shallow <<ecosystem> <name> [<name> ...] | <purl> [<purl> ...]>

src/commands/package/cmd-package-shallow.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const { DRY_RUN_BAIL_TEXT } = constants
1515
const config: CliCommandConfig = {
1616
commandName: 'shallow',
1717
description:
18-
'Look up info regarding one or more packages but not their transitives',
19-
hidden: true,
18+
'[beta] Look up info regarding one or more packages but not their transitives',
19+
hidden: false,
2020
flags: {
2121
...commonFlags,
2222
...outputFlags

src/commands/package/cmd-package.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ describe('socket package', async () => {
2424
$ socket package <command>
2525
2626
Commands
27-
(none)
27+
score [beta] Look up score for one package which reflects all of its transitive dependencies as well
28+
shallow [beta] Look up info regarding one or more packages but not their transitives
2829
2930
Options
3031
--dryRun Do input validation for a command and exit 0 when input is ok

src/commands/package/cmd-package.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const description = 'Commands relating to looking up published packages'
88

99
export const cmdPackage: CliSubcommand = {
1010
description,
11-
hidden: true, // [beta]
11+
hidden: false,
1212
async run(argv, importMeta, { parentName }) {
1313
await meowWithSubcommands(
1414
{

0 commit comments

Comments
 (0)