Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('socket repos create', async () => {

- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)

- Repository name using --repoNam (\\x1b[31minvalid\\x1b[39m)
- Repository name using --repoNam (\\x1b[31mmissing\\x1b[39m)

- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
`)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function run(
test: repoName,
message: 'Repository name using --repoNam',
pass: 'ok',
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
fail: 'missing'
},
{
nook: true,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-del.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('socket repos del', async () => {

- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)

- Repository name argument (\\x1b[31minvalid\\x1b[39m)
- Repository name argument (\\x1b[31mmissing\\x1b[39m)

- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
`)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-del.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async function run(
test: repoName,
message: 'Repository name argument',
pass: 'ok',
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
fail: 'missing'
},
{
nook: true,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('socket repos update', async () => {

- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)

- Repository name using --repoName (\\x1b[31minvalid\\x1b[39m)
- Repository name using --repoName (\\x1b[31mmissing\\x1b[39m)

- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
`)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function run(
test: repoName,
message: 'Repository name using --repoName',
pass: 'ok',
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
fail: 'missing'
},
{
nook: true,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-view.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('socket repos view', async () => {

- Org name as the first argument (\\x1b[31mmissing\\x1b[39m)

- Repository name using --repoName (\\x1b[31minvalid\\x1b[39m)
- Repository name using --repoName (\\x1b[31mmissing\\x1b[39m)

- You need to be logged in to use this command. See \`socket login\`. (\\x1b[31mmissing API token\\x1b[39m)"
`)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/repos/cmd-repos-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async function run(
test: repoName,
message: 'Repository name using --repoName',
pass: 'ok',
fail: typeof repoName !== 'string' ? 'missing' : 'invalid'
fail: 'missing'
},
{
nook: true,
Expand Down
6 changes: 3 additions & 3 deletions src/commands/scan/cmd-scan-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ async function run(
test: targets.length,
message: 'At least one TARGET (e.g. `.` or `./package.json`)',
pass: 'ok',
fail: 'missing'
fail: 'missing (or perhaps you forgot the org slug?)'
},
{
nook: true,
Expand All @@ -261,9 +261,9 @@ async function run(
{
nook: true,
test: apiToken,
message: 'This command requires an API token for access`)',
message: 'This command requires an API token for access',
pass: 'ok',
fail: 'missing'
fail: 'missing (try `socket login`)'
}
)
if (wasBadInput) {
Expand Down