Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 852fa1a

Browse files
author
Pelle Wessman
committedJan 25, 2023
Add socket ci alias
1 parent 9a1eb68 commit 852fa1a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed
 

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ socket report view QXU8PmK7LfH608RAwfIKdbcHgwEd_ZeWJ9QEGv05FJUQ
3434

3535
* `socket report view <report-id>` - looks up issues and scores from a report
3636

37+
## Aliases
38+
39+
All aliases supports flags and arguments of the commands they alias.
40+
41+
* `socket ci` - alias for `socket report create --view --strict` which creates a report and quits with an exit code if the result is unhealthy. Use like eg. `socket ci .` for a report for the current folder
42+
3743
## Flags
3844

3945
### Command specific flags

‎cli.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ try {
1818
await meowWithSubcommands(
1919
cliCommands,
2020
{
21+
aliases: {
22+
ci: {
23+
description: 'Alias for "report create --view --strict"',
24+
argv: ['report', 'create', '--view', '--strict']
25+
},
26+
},
2127
argv: process.argv.slice(2),
2228
name: 'socket',
2329
importMeta: import.meta

0 commit comments

Comments
 (0)
Please sign in to comment.