diff --git a/src/commands/analytics/cmd-analytics.test.mts b/src/commands/analytics/cmd-analytics.test.mts index 700841b30..4bd6ae210 100644 --- a/src/commands/analytics/cmd-analytics.test.mts +++ b/src/commands/analytics/cmd-analytics.test.mts @@ -50,7 +50,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) expect(code, 'explicit help should exit with code 0').toBe(0) @@ -72,8 +72,9 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - The time filter must either be 7, 30 or 90 (\\x1b[32mok\\x1b[39m) @@ -105,8 +106,9 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Legacy flags are no longer supported. See v1 migration guide. (\\x1b[31mreceived legacy flags\\x1b[39m) @@ -129,7 +131,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -147,7 +149,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -165,8 +167,9 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - When scope=repo, repo name should be the second argument (\\x1b[31mmissing\\x1b[39m) @@ -196,7 +199,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -214,7 +217,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -232,7 +235,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -250,7 +253,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -276,8 +279,9 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Legacy flags are no longer supported. See v1 migration guide. (\\x1b[31mreceived legacy flags\\x1b[39m) @@ -307,7 +311,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) @@ -333,7 +337,7 @@ describe('socket analytics', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket analytics\`, cwd: " `) diff --git a/src/commands/audit-log/cmd-audit-log.test.mts b/src/commands/audit-log/cmd-audit-log.test.mts index a5442bffc..df31b5d8a 100644 --- a/src/commands/audit-log/cmd-audit-log.test.mts +++ b/src/commands/audit-log/cmd-audit-log.test.mts @@ -55,7 +55,7 @@ describe('socket audit-log', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: " `) @@ -76,11 +76,12 @@ describe('socket audit-log', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -108,8 +109,9 @@ describe('socket audit-log', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Legacy flags are no longer supported. See v1 migration guide. (\\x1b[31mreceived legacy flags\\x1b[39m) @@ -135,7 +137,7 @@ describe('socket audit-log', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: " `) @@ -160,7 +162,7 @@ describe('socket audit-log', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket audit-log\`, cwd: " `) diff --git a/src/commands/ci/cmd-ci.test.mts b/src/commands/ci/cmd-ci.test.mts index 70ac5da75..8e23c8953 100644 --- a/src/commands/ci/cmd-ci.test.mts +++ b/src/commands/ci/cmd-ci.test.mts @@ -42,7 +42,7 @@ describe('socket ci', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket ci\`, cwd: " `) @@ -61,7 +61,7 @@ describe('socket ci', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket ci\`, cwd: " `) diff --git a/src/commands/cli.test.mts b/src/commands/cli.test.mts index 507f9153a..3db5e999d 100755 --- a/src/commands/cli.test.mts +++ b/src/commands/cli.test.mts @@ -16,7 +16,6 @@ describe('socket root command', async () => { Usage $ socket - All commands have their own --help page Main commands @@ -72,7 +71,7 @@ describe('socket root command', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket\`, cwd: " `) @@ -92,7 +91,7 @@ describe('socket root command', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket\`, cwd: " `) diff --git a/src/commands/config/cmd-config-auto.test.mts b/src/commands/config/cmd-config-auto.test.mts index 41109aa18..cba878eac 100644 --- a/src/commands/config/cmd-config-auto.test.mts +++ b/src/commands/config/cmd-config-auto.test.mts @@ -54,7 +54,7 @@ describe('socket config auto', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config auto\`, cwd: " `) @@ -82,7 +82,7 @@ describe('socket config auto', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config auto\`, cwd: " `) diff --git a/src/commands/config/cmd-config-get.test.mts b/src/commands/config/cmd-config-get.test.mts index 96cee960b..4c78cbe3f 100644 --- a/src/commands/config/cmd-config-get.test.mts +++ b/src/commands/config/cmd-config-get.test.mts @@ -49,7 +49,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) expect(code, 'explicit help should exit with code 0').toBe(0) @@ -71,8 +71,9 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Config key should be the first arg (\\x1b[31mmissing\\x1b[39m) @@ -102,7 +103,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config\`, cwd: " `) @@ -128,7 +129,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -154,7 +155,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -181,7 +182,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -207,7 +208,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -234,7 +235,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -266,7 +267,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -296,7 +297,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) @@ -320,7 +321,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config get\`, cwd: " `) diff --git a/src/commands/config/cmd-config-list.test.mts b/src/commands/config/cmd-config-list.test.mts index f61c32d5f..cdb4a37cb 100644 --- a/src/commands/config/cmd-config-list.test.mts +++ b/src/commands/config/cmd-config-list.test.mts @@ -34,7 +34,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config list\`, cwd: " `) @@ -55,7 +55,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config list\`, cwd: " `) diff --git a/src/commands/config/cmd-config-set.test.mts b/src/commands/config/cmd-config-set.test.mts index 407a20a93..a9e36a255 100644 --- a/src/commands/config/cmd-config-set.test.mts +++ b/src/commands/config/cmd-config-set.test.mts @@ -51,7 +51,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config set\`, cwd: " `) @@ -72,8 +72,9 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config set\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Config key should be the first arg (\\x1b[31mmissing\\x1b[39m) @@ -104,7 +105,7 @@ describe('socket config get', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config set\`, cwd: " `) diff --git a/src/commands/config/cmd-config-unset.test.mts b/src/commands/config/cmd-config-unset.test.mts index 274336318..93c86716c 100644 --- a/src/commands/config/cmd-config-unset.test.mts +++ b/src/commands/config/cmd-config-unset.test.mts @@ -45,7 +45,7 @@ describe('socket config unset', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config unset\`, cwd: " `) @@ -66,8 +66,9 @@ describe('socket config unset', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config unset\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Config key should be the first arg (\\x1b[31mmissing\\x1b[39m) @@ -95,7 +96,7 @@ describe('socket config unset', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config unset\`, cwd: " `) diff --git a/src/commands/config/cmd-config.test.mts b/src/commands/config/cmd-config.test.mts index 5c4942052..a283ac997 100644 --- a/src/commands/config/cmd-config.test.mts +++ b/src/commands/config/cmd-config.test.mts @@ -37,7 +37,7 @@ describe('socket config', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config\`, cwd: " `) @@ -60,7 +60,7 @@ describe('socket config', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket config\`, cwd: " `) @@ -82,7 +82,7 @@ describe('socket config', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket\`, cwd: \\x1b[31m\\xd7\\x1b[39m Could not parse Config as JSON" `) @@ -102,7 +102,7 @@ describe('socket config', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket\`, cwd: \\x1b[31m\\xd7\\x1b[39m Could not parse Config as JSON" `) diff --git a/src/commands/fix/cmd-fix.test.mts b/src/commands/fix/cmd-fix.test.mts index 1e7df1edd..615bf5d79 100644 --- a/src/commands/fix/cmd-fix.test.mts +++ b/src/commands/fix/cmd-fix.test.mts @@ -48,7 +48,7 @@ describe('socket fix', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket fix\`, cwd: " `) @@ -66,7 +66,7 @@ describe('socket fix', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket fix\`, cwd: " `) expect(stdout).toMatchInlineSnapshot(`"[DryRun]: Not saving"`) diff --git a/src/commands/install/cmd-install-completion.test.mts b/src/commands/install/cmd-install-completion.test.mts index 727a16172..a321acbbc 100644 --- a/src/commands/install/cmd-install-completion.test.mts +++ b/src/commands/install/cmd-install-completion.test.mts @@ -48,7 +48,7 @@ describe('socket install completion', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket install completion\`, cwd: " `) @@ -75,7 +75,7 @@ describe('socket install completion', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket install completion\`, cwd: " `) diff --git a/src/commands/install/cmd-install.test.mts b/src/commands/install/cmd-install.test.mts index cd9128559..dd51f9f0c 100644 --- a/src/commands/install/cmd-install.test.mts +++ b/src/commands/install/cmd-install.test.mts @@ -33,7 +33,7 @@ describe('socket install', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket install\`, cwd: " `) @@ -56,7 +56,7 @@ describe('socket install', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket install\`, cwd: " `) diff --git a/src/commands/json/cmd-json.test.mts b/src/commands/json/cmd-json.test.mts index a0e677b38..92c7ce6af 100644 --- a/src/commands/json/cmd-json.test.mts +++ b/src/commands/json/cmd-json.test.mts @@ -30,7 +30,7 @@ describe('socket json', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: " `) @@ -49,7 +49,7 @@ describe('socket json', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: \\x1b[34mi\\x1b[39m Target cwd: \\x1b[31m\\xd7\\x1b[39m Not found: " @@ -69,7 +69,7 @@ describe('socket json', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: \\x1b[34mi\\x1b[39m Target cwd: \\x1b[31m\\xd7\\x1b[39m Not found: " @@ -95,7 +95,7 @@ describe('socket json', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: \\x1b[34mi\\x1b[39m Target cwd: \\x1b[31m\\xd7\\x1b[39m Not found: " @@ -134,7 +134,7 @@ describe('socket json', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket json\`, cwd: \\x1b[34mi\\x1b[39m Target cwd: \\x1b[32m\\u221a\\x1b[39m This is the contents of :" diff --git a/src/commands/login/cmd-login.test.mts b/src/commands/login/cmd-login.test.mts index 7bd3eb344..5437a2231 100644 --- a/src/commands/login/cmd-login.test.mts +++ b/src/commands/login/cmd-login.test.mts @@ -37,7 +37,7 @@ describe('socket login', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket login\`, cwd: " `) @@ -56,7 +56,7 @@ describe('socket login', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket login\`, cwd: " `) diff --git a/src/commands/logout/cmd-logout.test.mts b/src/commands/logout/cmd-logout.test.mts index a8b463500..509bc9768 100644 --- a/src/commands/logout/cmd-logout.test.mts +++ b/src/commands/logout/cmd-logout.test.mts @@ -29,7 +29,7 @@ describe('socket logout', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket logout\`, cwd: " `) @@ -50,7 +50,7 @@ describe('socket logout', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket logout\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest-auto.test.mts b/src/commands/manifest/cmd-manifest-auto.test.mts index c41ac5ca3..997ba5ca4 100644 --- a/src/commands/manifest/cmd-manifest-auto.test.mts +++ b/src/commands/manifest/cmd-manifest-auto.test.mts @@ -39,7 +39,7 @@ describe('socket manifest auto', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest auto\`, cwd: " `) @@ -60,7 +60,7 @@ describe('socket manifest auto', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest auto\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest-cdxgen.test.mts b/src/commands/manifest/cmd-manifest-cdxgen.test.mts index a649d0302..db303eccf 100644 --- a/src/commands/manifest/cmd-manifest-cdxgen.test.mts +++ b/src/commands/manifest/cmd-manifest-cdxgen.test.mts @@ -78,7 +78,7 @@ describe('socket manifest cdxgen', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest cdxgen\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest-conda.test.mts b/src/commands/manifest/cmd-manifest-conda.test.mts index 1434ebe7d..bfa5efb6a 100644 --- a/src/commands/manifest/cmd-manifest-conda.test.mts +++ b/src/commands/manifest/cmd-manifest-conda.test.mts @@ -47,7 +47,7 @@ describe('socket manifest conda', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: " `) @@ -68,7 +68,7 @@ describe('socket manifest conda', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: \\x1b[33m\\u203c\\x1b[39m Warning: This will approximate your Conda dependencies using PyPI. We do not yet officially support Conda. Use at your own risk." `) @@ -95,8 +95,9 @@ describe('socket manifest conda', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Can only accept one DIR (make sure to escape spaces!) (\\x1b[31mreceived 2\\x1b[39m) @@ -129,7 +130,7 @@ describe('socket manifest conda', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: " `) }, @@ -153,8 +154,9 @@ describe('socket manifest conda', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest conda\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Can only accept one DIR (make sure to escape spaces!) (\\x1b[31mreceived 2\\x1b[39m) diff --git a/src/commands/manifest/cmd-manifest-gradle.test.mts b/src/commands/manifest/cmd-manifest-gradle.test.mts index ca54fbed8..732f931a4 100644 --- a/src/commands/manifest/cmd-manifest-gradle.test.mts +++ b/src/commands/manifest/cmd-manifest-gradle.test.mts @@ -54,7 +54,7 @@ describe('socket manifest gradle', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest gradle\`, cwd: " `) @@ -75,7 +75,7 @@ describe('socket manifest gradle', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest gradle\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest-kotlin.test.mts b/src/commands/manifest/cmd-manifest-kotlin.test.mts index 4490d3f59..891e06739 100644 --- a/src/commands/manifest/cmd-manifest-kotlin.test.mts +++ b/src/commands/manifest/cmd-manifest-kotlin.test.mts @@ -54,7 +54,7 @@ describe('socket manifest kotlin', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest kotlin\`, cwd: " `) @@ -75,7 +75,7 @@ describe('socket manifest kotlin', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest kotlin\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest-scala.test.mts b/src/commands/manifest/cmd-manifest-scala.test.mts index 974b34b78..b2eed0ba0 100644 --- a/src/commands/manifest/cmd-manifest-scala.test.mts +++ b/src/commands/manifest/cmd-manifest-scala.test.mts @@ -61,7 +61,7 @@ describe('socket manifest scala', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest scala\`, cwd: " `) @@ -82,7 +82,7 @@ describe('socket manifest scala', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest scala\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest-setup.test.mts b/src/commands/manifest/cmd-manifest-setup.test.mts index 08de7e77a..a08992f98 100644 --- a/src/commands/manifest/cmd-manifest-setup.test.mts +++ b/src/commands/manifest/cmd-manifest-setup.test.mts @@ -50,7 +50,7 @@ describe('socket manifest setup', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest setup\`, cwd: " `) @@ -71,7 +71,7 @@ describe('socket manifest setup', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest setup\`, cwd: " `) diff --git a/src/commands/manifest/cmd-manifest.test.mts b/src/commands/manifest/cmd-manifest.test.mts index 241def6d2..13d1e832d 100644 --- a/src/commands/manifest/cmd-manifest.test.mts +++ b/src/commands/manifest/cmd-manifest.test.mts @@ -39,7 +39,7 @@ describe('socket manifest', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest\`, cwd: " `) @@ -68,7 +68,7 @@ describe('socket manifest', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket manifest\`, cwd: " `) diff --git a/src/commands/npm/cmd-npm.test.mts b/src/commands/npm/cmd-npm.test.mts index 411e4da80..4f080f472 100644 --- a/src/commands/npm/cmd-npm.test.mts +++ b/src/commands/npm/cmd-npm.test.mts @@ -37,7 +37,7 @@ describe('socket npm', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket npm\`, cwd: " `) @@ -56,7 +56,7 @@ describe('socket npm', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket npm\`, cwd: " `) diff --git a/src/commands/npx/cmd-npx.test.mts b/src/commands/npx/cmd-npx.test.mts index 0fabe4fbe..115b5a772 100644 --- a/src/commands/npx/cmd-npx.test.mts +++ b/src/commands/npx/cmd-npx.test.mts @@ -37,7 +37,7 @@ describe('socket npx', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket npx\`, cwd: " `) @@ -56,7 +56,7 @@ describe('socket npx', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket npx\`, cwd: " `) diff --git a/src/commands/oops/cmd-oops.test.mts b/src/commands/oops/cmd-oops.test.mts index 384d9062d..b817e9ac5 100644 --- a/src/commands/oops/cmd-oops.test.mts +++ b/src/commands/oops/cmd-oops.test.mts @@ -26,7 +26,7 @@ describe('socket oops', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket oops\`, cwd: " `) @@ -45,7 +45,7 @@ describe('socket oops', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket oops\`, cwd: " `) diff --git a/src/commands/optimize/cmd-optimize.test.mts b/src/commands/optimize/cmd-optimize.test.mts index af9b4b6fb..d7e876336 100644 --- a/src/commands/optimize/cmd-optimize.test.mts +++ b/src/commands/optimize/cmd-optimize.test.mts @@ -32,7 +32,7 @@ describe('socket optimize', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket optimize\`, cwd: " `) @@ -53,7 +53,7 @@ describe('socket optimize', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket optimize\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization-dependencies.test.mts b/src/commands/organization/cmd-organization-dependencies.test.mts index 911e2b23e..01dda1414 100644 --- a/src/commands/organization/cmd-organization-dependencies.test.mts +++ b/src/commands/organization/cmd-organization-dependencies.test.mts @@ -38,7 +38,7 @@ describe('socket organization dependencies', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization dependencies\`, cwd: " `) @@ -65,7 +65,7 @@ describe('socket organization dependencies', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization dependencies\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization-list.test.mts b/src/commands/organization/cmd-organization-list.test.mts index acb4cde5a..92fca6650 100644 --- a/src/commands/organization/cmd-organization-list.test.mts +++ b/src/commands/organization/cmd-organization-list.test.mts @@ -38,7 +38,7 @@ describe('socket organization list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization list\`, cwd: " `) @@ -65,7 +65,7 @@ describe('socket organization list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization list\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization-policy-license.test.mts b/src/commands/organization/cmd-organization-policy-license.test.mts index f8a1881a6..525295751 100644 --- a/src/commands/organization/cmd-organization-policy-license.test.mts +++ b/src/commands/organization/cmd-organization-policy-license.test.mts @@ -43,7 +43,7 @@ describe('socket organization policy license', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: " `) @@ -64,11 +64,12 @@ describe('socket organization policy license', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m) @@ -97,10 +98,10 @@ describe('socket organization policy license', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode" `) @@ -125,7 +126,7 @@ describe('socket organization policy license', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: " `) @@ -152,7 +153,7 @@ describe('socket organization policy license', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy license\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization-policy-security.test.mts b/src/commands/organization/cmd-organization-policy-security.test.mts index 92d6f1813..190b49745 100644 --- a/src/commands/organization/cmd-organization-policy-security.test.mts +++ b/src/commands/organization/cmd-organization-policy-security.test.mts @@ -43,7 +43,7 @@ describe('socket organization policy security', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: " `) @@ -64,11 +64,12 @@ describe('socket organization policy security', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m) @@ -96,7 +97,7 @@ describe('socket organization policy security', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: " `) @@ -123,7 +124,7 @@ describe('socket organization policy security', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy security\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization-policy.test.mts b/src/commands/organization/cmd-organization-policy.test.mts index 945b732a0..6b615d604 100644 --- a/src/commands/organization/cmd-organization-policy.test.mts +++ b/src/commands/organization/cmd-organization-policy.test.mts @@ -35,7 +35,7 @@ describe('socket organization list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy\`, cwd: " `) @@ -64,7 +64,7 @@ describe('socket organization list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization policy\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization-quota.test.mts b/src/commands/organization/cmd-organization-quota.test.mts index fd25445e5..a6124c304 100644 --- a/src/commands/organization/cmd-organization-quota.test.mts +++ b/src/commands/organization/cmd-organization-quota.test.mts @@ -34,7 +34,7 @@ describe('socket organization quota', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization quota\`, cwd: " `) @@ -61,7 +61,7 @@ describe('socket organization quota', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization quota\`, cwd: " `) diff --git a/src/commands/organization/cmd-organization.test.mts b/src/commands/organization/cmd-organization.test.mts index 82a8d6a9c..ea397ce8b 100644 --- a/src/commands/organization/cmd-organization.test.mts +++ b/src/commands/organization/cmd-organization.test.mts @@ -37,7 +37,7 @@ describe('socket organization', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization\`, cwd: " `) @@ -60,7 +60,7 @@ describe('socket organization', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket organization\`, cwd: " `) diff --git a/src/commands/package/cmd-package-score.test.mts b/src/commands/package/cmd-package-score.test.mts index 8082d9539..14d7e584a 100644 --- a/src/commands/package/cmd-package-score.test.mts +++ b/src/commands/package/cmd-package-score.test.mts @@ -57,7 +57,7 @@ describe('socket package score', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package score\`, cwd: " `) @@ -79,8 +79,9 @@ describe('socket package score', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package score\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - First parameter must be an ecosystem or the whole purl (\\x1b[31mbad\\x1b[39m) @@ -113,7 +114,7 @@ describe('socket package score', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package score\`, cwd: " `) diff --git a/src/commands/package/cmd-package-shallow.test.mts b/src/commands/package/cmd-package-shallow.test.mts index 2d9f0f17e..ddf58fa09 100644 --- a/src/commands/package/cmd-package-shallow.test.mts +++ b/src/commands/package/cmd-package-shallow.test.mts @@ -56,7 +56,7 @@ describe('socket package shallow', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package shallow\`, cwd: " `) @@ -77,8 +77,9 @@ describe('socket package shallow', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package shallow\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - First parameter should be an ecosystem or all args must be purls (\\x1b[31mbad\\x1b[39m) @@ -109,7 +110,7 @@ describe('socket package shallow', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package shallow\`, cwd: " `) diff --git a/src/commands/package/cmd-package.test.mts b/src/commands/package/cmd-package.test.mts index 2857bef89..63217e271 100644 --- a/src/commands/package/cmd-package.test.mts +++ b/src/commands/package/cmd-package.test.mts @@ -34,7 +34,7 @@ describe('socket package', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package\`, cwd: " `) @@ -57,7 +57,7 @@ describe('socket package', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket package\`, cwd: " `) diff --git a/src/commands/raw-npm/cmd-raw-npm.test.mts b/src/commands/raw-npm/cmd-raw-npm.test.mts index 450d89d79..ee44b4119 100644 --- a/src/commands/raw-npm/cmd-raw-npm.test.mts +++ b/src/commands/raw-npm/cmd-raw-npm.test.mts @@ -34,7 +34,7 @@ describe('socket raw-npm', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket raw-npm\`, cwd: " `) @@ -55,7 +55,7 @@ describe('socket raw-npm', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket raw-npm\`, cwd: " `) diff --git a/src/commands/raw-npx/cmd-raw-npx.test.mts b/src/commands/raw-npx/cmd-raw-npx.test.mts index b4445fb64..bfd7ef2c9 100644 --- a/src/commands/raw-npx/cmd-raw-npx.test.mts +++ b/src/commands/raw-npx/cmd-raw-npx.test.mts @@ -34,7 +34,7 @@ describe('socket raw-npx', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket raw-npx\`, cwd: " `) @@ -55,7 +55,7 @@ describe('socket raw-npx', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket raw-npx\`, cwd: " `) diff --git a/src/commands/repository/cmd-repository-create.test.mts b/src/commands/repository/cmd-repository-create.test.mts index ea58f0612..63694f9da 100644 --- a/src/commands/repository/cmd-repository-create.test.mts +++ b/src/commands/repository/cmd-repository-create.test.mts @@ -44,7 +44,7 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: " `) @@ -65,11 +65,12 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -104,7 +105,7 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: " `) @@ -129,11 +130,12 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -162,8 +164,9 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -192,8 +195,9 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -221,7 +225,7 @@ describe('socket repository create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository create\`, cwd: " `) diff --git a/src/commands/repository/cmd-repository-del.test.mts b/src/commands/repository/cmd-repository-del.test.mts index 9e9d8736a..6bf1ac16f 100644 --- a/src/commands/repository/cmd-repository-del.test.mts +++ b/src/commands/repository/cmd-repository-del.test.mts @@ -37,7 +37,7 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: " `) @@ -58,11 +58,12 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -97,7 +98,7 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: xyz |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: " `) @@ -122,11 +123,12 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -155,8 +157,9 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -185,8 +188,9 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -214,7 +218,7 @@ describe('socket repository del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository del\`, cwd: " `) diff --git a/src/commands/repository/cmd-repository-list.test.mts b/src/commands/repository/cmd-repository-list.test.mts index 6045a3d65..e26a2c94f 100644 --- a/src/commands/repository/cmd-repository-list.test.mts +++ b/src/commands/repository/cmd-repository-list.test.mts @@ -45,7 +45,7 @@ describe('socket repository list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository list\`, cwd: " `) @@ -66,11 +66,12 @@ describe('socket repository list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository list\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -102,7 +103,7 @@ describe('socket repository list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository list\`, cwd: " `) @@ -120,11 +121,12 @@ describe('socket repository list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository list\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -151,7 +153,7 @@ describe('socket repository list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository list\`, cwd: " `) @@ -177,7 +179,7 @@ describe('socket repository list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository list\`, cwd: " `) diff --git a/src/commands/repository/cmd-repository-update.test.mts b/src/commands/repository/cmd-repository-update.test.mts index e93e2f0cc..0d2667e02 100644 --- a/src/commands/repository/cmd-repository-update.test.mts +++ b/src/commands/repository/cmd-repository-update.test.mts @@ -42,7 +42,7 @@ describe('socket repository update', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository update\`, cwd: " `) @@ -63,11 +63,12 @@ describe('socket repository update', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository update\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -99,11 +100,12 @@ describe('socket repository update', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository update\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -132,8 +134,9 @@ describe('socket repository update', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository update\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -162,8 +165,9 @@ describe('socket repository update', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository update\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -191,7 +195,7 @@ describe('socket repository update', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository update\`, cwd: " `) diff --git a/src/commands/repository/cmd-repository-view.test.mts b/src/commands/repository/cmd-repository-view.test.mts index a76c74384..f2eb85a05 100644 --- a/src/commands/repository/cmd-repository-view.test.mts +++ b/src/commands/repository/cmd-repository-view.test.mts @@ -38,7 +38,7 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: " `) @@ -59,11 +59,12 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -98,7 +99,7 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: " `) @@ -123,11 +124,12 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -156,8 +158,9 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -186,8 +189,9 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Repository name as first argument (\\x1b[31mmissing\\x1b[39m) @@ -215,7 +219,7 @@ describe('socket repository view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository view\`, cwd: " `) diff --git a/src/commands/repository/cmd-repository.test.mts b/src/commands/repository/cmd-repository.test.mts index 1a8e9db0d..9fd9ae810 100644 --- a/src/commands/repository/cmd-repository.test.mts +++ b/src/commands/repository/cmd-repository.test.mts @@ -37,7 +37,7 @@ describe('socket repository', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository\`, cwd: " `) @@ -60,7 +60,7 @@ describe('socket repository', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket repository\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-create.test.mts b/src/commands/scan/cmd-scan-create.test.mts index 5b2099f6b..efebf81a5 100644 --- a/src/commands/scan/cmd-scan-create.test.mts +++ b/src/commands/scan/cmd-scan-create.test.mts @@ -80,7 +80,7 @@ describe('socket scan create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan create\`, cwd: " `) @@ -114,7 +114,7 @@ describe('socket scan create', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan create\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-del.test.mts b/src/commands/scan/cmd-scan-del.test.mts index ec4e23d6e..1741ea4a3 100644 --- a/src/commands/scan/cmd-scan-del.test.mts +++ b/src/commands/scan/cmd-scan-del.test.mts @@ -38,7 +38,7 @@ describe('socket scan del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan del\`, cwd: " `) @@ -59,11 +59,12 @@ describe('socket scan del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan del\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -97,7 +98,7 @@ describe('socket scan del', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan del\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-diff.test.mts b/src/commands/scan/cmd-scan-diff.test.mts index 817163158..f2c89e4e1 100644 --- a/src/commands/scan/cmd-scan-diff.test.mts +++ b/src/commands/scan/cmd-scan-diff.test.mts @@ -48,7 +48,7 @@ describe('socket scan diff', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan diff\`, cwd: " `) @@ -69,11 +69,12 @@ describe('socket scan diff', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan diff\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Specify two Scan IDs. (\\x1b[31mmissing both Scan IDs\\x1b[39m) @@ -109,7 +110,7 @@ describe('socket scan diff', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan diff\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-github.test.mts b/src/commands/scan/cmd-scan-github.test.mts index f3dc071c9..b1bf74139 100644 --- a/src/commands/scan/cmd-scan-github.test.mts +++ b/src/commands/scan/cmd-scan-github.test.mts @@ -55,7 +55,7 @@ describe('socket scan github', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan github\`, cwd: " `) @@ -76,11 +76,12 @@ describe('socket scan github', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan github\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - This command requires an API token for access (\\x1b[31mmissing (try \`socket login\`)\\x1b[39m) @@ -114,10 +115,10 @@ describe('socket scan github', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan github\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode" `) diff --git a/src/commands/scan/cmd-scan-list.test.mts b/src/commands/scan/cmd-scan-list.test.mts index 0878acf7f..30f1eec58 100644 --- a/src/commands/scan/cmd-scan-list.test.mts +++ b/src/commands/scan/cmd-scan-list.test.mts @@ -49,7 +49,7 @@ describe('socket scan list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan list\`, cwd: " `) @@ -70,11 +70,12 @@ describe('socket scan list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan list\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mdot is an invalid org, most likely you forgot the org name here?\\x1b[39m) @@ -105,7 +106,7 @@ describe('socket scan list', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan list\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-metadata.test.mts b/src/commands/scan/cmd-scan-metadata.test.mts index dc833d004..ea58f3135 100644 --- a/src/commands/scan/cmd-scan-metadata.test.mts +++ b/src/commands/scan/cmd-scan-metadata.test.mts @@ -38,7 +38,7 @@ describe('socket scan metadata', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan metadata\`, cwd: " `) @@ -59,11 +59,12 @@ describe('socket scan metadata', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan metadata\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -97,7 +98,7 @@ describe('socket scan metadata', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan metadata\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-reach.test.mts b/src/commands/scan/cmd-scan-reach.test.mts index 4de4cb7a9..2c28a1c86 100644 --- a/src/commands/scan/cmd-scan-reach.test.mts +++ b/src/commands/scan/cmd-scan-reach.test.mts @@ -32,7 +32,7 @@ describe('socket scan reach', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan reach\`, cwd: " `) @@ -53,7 +53,7 @@ describe('socket scan reach', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan reach\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-report.test.mts b/src/commands/scan/cmd-scan-report.test.mts index b3f1d52c7..6cfbeb1bf 100644 --- a/src/commands/scan/cmd-scan-report.test.mts +++ b/src/commands/scan/cmd-scan-report.test.mts @@ -67,7 +67,7 @@ describe('socket scan report', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan report\`, cwd: " `) @@ -88,11 +88,12 @@ describe('socket scan report', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan report\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mdot is an invalid org, most likely you forgot the org name here?\\x1b[39m) @@ -127,7 +128,7 @@ describe('socket scan report', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: foorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan report\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-setup.test.mts b/src/commands/scan/cmd-scan-setup.test.mts index 2fa8b8e32..2c9d01f5f 100644 --- a/src/commands/scan/cmd-scan-setup.test.mts +++ b/src/commands/scan/cmd-scan-setup.test.mts @@ -43,7 +43,7 @@ describe('socket scan setup', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan setup\`, cwd: " `) @@ -72,7 +72,7 @@ describe('socket scan setup', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan setup\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan-view.test.mts b/src/commands/scan/cmd-scan-view.test.mts index 4e31a8b37..723f5fef1 100644 --- a/src/commands/scan/cmd-scan-view.test.mts +++ b/src/commands/scan/cmd-scan-view.test.mts @@ -41,7 +41,7 @@ describe('socket scan view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan view\`, cwd: " `) @@ -62,11 +62,12 @@ describe('socket scan view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan view\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mdot is an invalid org, most likely you forgot the org name here?\\x1b[39m) @@ -100,7 +101,7 @@ describe('socket scan view', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: fakeorg |_____|___|___|_,_|___|_|.dev | Command: \`socket scan view\`, cwd: " `) diff --git a/src/commands/scan/cmd-scan.test.mts b/src/commands/scan/cmd-scan.test.mts index a65505395..e9d141447 100644 --- a/src/commands/scan/cmd-scan.test.mts +++ b/src/commands/scan/cmd-scan.test.mts @@ -42,7 +42,7 @@ describe('socket scan', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan\`, cwd: " `) @@ -63,7 +63,7 @@ describe('socket scan', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket scan\`, cwd: " `) diff --git a/src/commands/threat-feed/cmd-threat-feed.test.mts b/src/commands/threat-feed/cmd-threat-feed.test.mts index 1d2bfff24..dc8966480 100644 --- a/src/commands/threat-feed/cmd-threat-feed.test.mts +++ b/src/commands/threat-feed/cmd-threat-feed.test.mts @@ -88,7 +88,7 @@ describe('socket threat-feed', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket threat-feed\`, cwd: " `) @@ -109,11 +109,12 @@ describe('socket threat-feed', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket threat-feed\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -143,7 +144,7 @@ describe('socket threat-feed', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: boo |_____|___|___|_,_|___|_|.dev | Command: \`socket threat-feed\`, cwd: " `) @@ -161,11 +162,12 @@ describe('socket threat-feed', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket threat-feed\`, cwd: - \\x1b[33m\\u203c\\x1b[39m Missing the org slug and no --org flag set. Trying to auto-discover the org now... - \\x1b[34mi\\x1b[39m Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag. + \\x1b[33m\\u203c\\x1b[39m Unable to determine the target org. Trying to auto-discover it now... + \\x1b[34mi\\x1b[39m Note: you can run \`socket login\` to set a default org. You can also override it with the --org flag. \\x1b[31m\\xd7\\x1b[39m Skipping auto-discovery of org in dry-run mode + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Org name by default setting, --org, or auto-discovered (\\x1b[31mmissing\\x1b[39m) @@ -191,7 +193,7 @@ describe('socket threat-feed', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: , org: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket threat-feed\`, cwd: " `) @@ -216,7 +218,7 @@ describe('socket threat-feed', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , --org: forcedorg |_____|___|___|_,_|___|_|.dev | Command: \`socket threat-feed\`, cwd: " `) diff --git a/src/commands/uninstall/cmd-uninstall-completion.test.mts b/src/commands/uninstall/cmd-uninstall-completion.test.mts index c588abf4f..6d66056aa 100644 --- a/src/commands/uninstall/cmd-uninstall-completion.test.mts +++ b/src/commands/uninstall/cmd-uninstall-completion.test.mts @@ -40,7 +40,7 @@ describe('socket uninstall completion', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket uninstall completion\`, cwd: " `) @@ -67,7 +67,7 @@ describe('socket uninstall completion', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket uninstall completion\`, cwd: " `) diff --git a/src/commands/uninstall/cmd-uninstall.test.mts b/src/commands/uninstall/cmd-uninstall.test.mts index 841a94b45..74f56b5fa 100644 --- a/src/commands/uninstall/cmd-uninstall.test.mts +++ b/src/commands/uninstall/cmd-uninstall.test.mts @@ -33,7 +33,7 @@ describe('socket uninstall', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket uninstall\`, cwd: " `) @@ -56,7 +56,7 @@ describe('socket uninstall', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket uninstall\`, cwd: " `) diff --git a/src/commands/wrapper/cmd-wrapper.test.mts b/src/commands/wrapper/cmd-wrapper.test.mts index a4ebaaa33..3d1341d2b 100644 --- a/src/commands/wrapper/cmd-wrapper.test.mts +++ b/src/commands/wrapper/cmd-wrapper.test.mts @@ -35,7 +35,7 @@ describe('socket wrapper', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket wrapper\`, cwd: " `) @@ -56,8 +56,9 @@ describe('socket wrapper', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket wrapper\`, cwd: + \\x1b[31m\\xd7\\x1b[39m \\x1b[41m\\x1b[1m\\x1b[37m Input error: \\x1b[39m\\x1b[22m\\x1b[49m \\x1b[1mPlease review the input requirements and try again - Must specify "on" or "off" argument (\\x1b[31mmissing\\x1b[39m) @@ -78,7 +79,7 @@ describe('socket wrapper', async () => { " _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver - |__ | * | _| '_| -_| _| | Node: , API token set: + |__ | * | _| '_| -_| _| | Node: , API token: , org: |_____|___|___|_,_|___|_|.dev | Command: \`socket wrapper\`, cwd: " `) diff --git a/src/utils/check-input.mts b/src/utils/check-input.mts index d9032cef2..d8fd164f4 100644 --- a/src/utils/check-input.mts +++ b/src/utils/check-input.mts @@ -57,6 +57,7 @@ export function checkCommandInput( }), ) } else { + logger.error('') // Empty line between banner and error logger.fail(failMsgWithBadge('Input error', msg.join('\n'))) } diff --git a/src/utils/determine-org-slug.mts b/src/utils/determine-org-slug.mts index fe0a02968..7dc06a5cb 100644 --- a/src/utils/determine-org-slug.mts +++ b/src/utils/determine-org-slug.mts @@ -11,17 +11,47 @@ export async function determineOrgSlug( const defaultOrgSlug = getConfigValueOrUndef('defaultOrg') let orgSlug = String(orgFlag || defaultOrgSlug || '') if (!orgSlug) { + if (!interactive) { + logger.warn( + 'Note: This command requires an org slug because the remote API endpoint does.', + ) + logger.warn('') + logger.warn( + 'It seems no default org was setup and the `--org` flag was not used.', + ) + logger.warn( + "Additionally, `--no-interactive` was set so we can't ask for it.", + ) + logger.warn( + 'Since v1.0.0 the org _argument_ for all commands was dropped in favor of an', + ) + logger.warn( + 'implicit default org setting, which will be setup when you run `socket login`.', + ) + logger.warn('') + logger.warn( + 'Note: When running in CI, you probably want to set the `--org` flag.', + ) + logger.warn('') + logger.warn( + 'For details, see: https://docs.socket.dev/docs/v1-migration-guide', + ) + logger.warn('') + logger.warn( + 'This command will exit now because the org slug is required to proceed.', + ) + return ['', undefined] + } + // ask from server logger.warn( - 'Missing the org slug and no --org flag set. Trying to auto-discover the org now...', + 'Unable to determine the target org. Trying to auto-discover it now...', ) logger.info( - 'Note: you can set the default org slug to prevent this issue. You can also override all that with the --org flag.', + 'Note: you can run `socket login` to set a default org. You can also override it with the --org flag.', ) if (dryRun) { logger.fail('Skipping auto-discovery of org in dry-run mode') - } else if (!interactive) { - logger.fail('Skipping auto-discovery of org when interactive = false') } else { orgSlug = (await suggestOrgSlug()) || '' } diff --git a/src/utils/meow-with-subcommands.mts b/src/utils/meow-with-subcommands.mts index 293852d86..0748124fb 100644 --- a/src/utils/meow-with-subcommands.mts +++ b/src/utils/meow-with-subcommands.mts @@ -164,6 +164,8 @@ export async function meowWithSubcommands( autoHelp: false, }) + const orgFlag = String(cli1.flags['org'] || '') || undefined + // Hard override the config if instructed to do so. // The env var overrides the --flag, which overrides the persisted config // Also, when either of these are used, config updates won't persist. @@ -196,7 +198,7 @@ export async function meowWithSubcommands( } if (configOverrideResult?.ok === false) { - emitBanner(name) + emitBanner(name, orgFlag) logger.fail(configOverrideResult.message) process.exitCode = 2 return @@ -373,8 +375,7 @@ export async function meowWithSubcommands( ` Usage $ ${name} - -${isRootCommand ? '' : ' Commands'} +${isRootCommand ? '' : '\n Commands'} ${formatCommandsForHelp(isRootCommand)} ${isRootCommand ? ' Options' : ' Options'}${isRootCommand ? ' (Note: all CLI commands have these flags even when not displayed in their help)\n' : ''} @@ -399,7 +400,7 @@ ${isRootCommand ? ` $ ${name} scan create --json` : ''}${isRootCommand ? `\ // ...else we provide basic instructions and help. if (!cli2.flags['nobanner']) { - emitBanner(name) + emitBanner(name, orgFlag) } if (!cli2.flags['help'] && cli2.flags['dryRun']) { process.exitCode = 0 @@ -444,7 +445,7 @@ export function meowOrExit({ }) if (!cli.flags['nobanner']) { - emitBanner(command) + emitBanner(command, String(cli.flags['org'] || '') || undefined) } // As per https://github.com/sindresorhus/meow/issues/178 @@ -487,7 +488,7 @@ export function meowOrExit({ return cli } -export function emitBanner(name: string) { +export function emitBanner(name: string, orgFlag: string | undefined) { // Print a banner at the top of each command. // This helps with brand recognition and marketing. // It also helps with debugging since it contains version and command details. @@ -496,10 +497,10 @@ export function emitBanner(name: string) { // and pipe the result to other tools. By emitting the banner over stderr // you can do something like `socket scan view xyz | jq | process`. // The spinner also emits over stderr for example. - logger.error(getAsciiHeader(name)) + logger.error(getAsciiHeader(name, orgFlag)) } -function getAsciiHeader(command: string) { +function getAsciiHeader(command: string, orgFlag: string | undefined) { // Note: In tests we return because otherwise snapshots will fail. const { REDACTED } = constants // Lazily access constants.ENV.VITEST. @@ -511,13 +512,25 @@ function getAsciiHeader(command: string) { const nodeVersion = redacting ? REDACTED : process.version const defaultOrg = getConfigValueOrUndef('defaultOrg') const readOnlyConfig = isReadOnlyConfig() ? '*' : '.' - const shownToken = redacting ? REDACTED : getVisibleTokenPrefix() || 'no' + const shownToken = redacting + ? REDACTED + : getVisibleTokenPrefix() || '(not set)' const relCwd = redacting ? REDACTED : normalizePath(tildify(process.cwd())) + // Note: we must redact org when creating snapshots because dev machine probably + // has a default org set but CI won't. Showing --org is fine either way. + const orgPart = orgFlag + ? `--org: ${orgFlag}` + : redacting + ? 'org: ' + : defaultOrg + ? `default org: ${defaultOrg}` + : '(org not set)' const body = ` _____ _ _ /--------------- | __|___ ___| |_ ___| |_ | Socket.dev CLI ver ${cliVersion} - |__ | ${readOnlyConfig} | _| '_| -_| _| | Node: ${nodeVersion}, API token set: ${shownToken}${defaultOrg ? `, org: ${redacting ? REDACTED : defaultOrg}` : ''} - |_____|___|___|_,_|___|_|.dev | Command: \`${command}\`, cwd: ${relCwd}`.trimStart() + |__ | ${readOnlyConfig} | _| '_| -_| _| | Node: ${nodeVersion}, API token: ${shownToken}, ${orgPart} + |_____|___|___|_,_|___|_|.dev | Command: \`${command}\`, cwd: ${relCwd} + `.trim() return ` ${body}` // Note: logger will auto-append a newline }