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
2 changes: 2 additions & 0 deletions src/commands/info/cmd-info.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ describe('socket info', async () => {
Usage
$ socket info <name>

Note: this command will be deprecated in favor of \`socket package score\` soon

Options
--all Include all issues
--dryRun Do input validation for a command and exit 0 when input is ok
Expand Down
2 changes: 2 additions & 0 deletions src/commands/info/cmd-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const config: CliCommandConfig = {
Usage
$ ${command} <name>

Note: this command will be deprecated in favor of \`socket package score\` soon

Options
${getFlagListOutput(config.flags, 6)}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/package/cmd-package-score.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('socket package score', async () => {
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
expect(stdout).toMatchInlineSnapshot(
`
"Look up score for one package which reflects all of its transitive dependencies as well
"[beta] Look up score for one package which reflects all of its transitive dependencies as well

Usage
$ socket package score <<ecosystem> <name> | <purl>>
Expand Down
4 changes: 2 additions & 2 deletions src/commands/package/cmd-package-score.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const { DRY_RUN_BAIL_TEXT } = constants
const config: CliCommandConfig = {
commandName: 'score',
description:
'Look up score for one package which reflects all of its transitive dependencies as well',
hidden: true,
'[beta] Look up score for one package which reflects all of its transitive dependencies as well',
hidden: false,
flags: {
...commonFlags,
...outputFlags
Expand Down
2 changes: 1 addition & 1 deletion src/commands/package/cmd-package-shallow.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('socket package shallow', async () => {
const { code, stderr, stdout } = await invokeNpm(entryPath, cmd)
expect(stdout).toMatchInlineSnapshot(
`
"Look up info regarding one or more packages but not their transitives
"[beta] Look up info regarding one or more packages but not their transitives

Usage
$ socket package shallow <<ecosystem> <name> [<name> ...] | <purl> [<purl> ...]>
Expand Down
4 changes: 2 additions & 2 deletions src/commands/package/cmd-package-shallow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ const { DRY_RUN_BAIL_TEXT } = constants
const config: CliCommandConfig = {
commandName: 'shallow',
description:
'Look up info regarding one or more packages but not their transitives',
hidden: true,
'[beta] Look up info regarding one or more packages but not their transitives',
hidden: false,
flags: {
...commonFlags,
...outputFlags
Expand Down
3 changes: 2 additions & 1 deletion src/commands/package/cmd-package.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ describe('socket package', async () => {
$ socket package <command>

Commands
(none)
score [beta] Look up score for one package which reflects all of its transitive dependencies as well
shallow [beta] Look up info regarding one or more packages but not their transitives

Options
--dryRun Do input validation for a command and exit 0 when input is ok
Expand Down
2 changes: 1 addition & 1 deletion src/commands/package/cmd-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const description = 'Commands relating to looking up published packages'

export const cmdPackage: CliSubcommand = {
description,
hidden: true, // [beta]
hidden: false,
async run(argv, importMeta, { parentName }) {
await meowWithSubcommands(
{
Expand Down