securewithtrace 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -0
- package/dist/index.js +15 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -134,6 +134,9 @@ tracecli vulnerabilities list --output json | jq '.[].title'
|
|
|
134
134
|
|
|
135
135
|
# TSV output for awk/cut
|
|
136
136
|
tracecli vulnerabilities list --output tsv | cut -f1,7
|
|
137
|
+
|
|
138
|
+
# Open vulnerabilities dashboard in browser
|
|
139
|
+
tracecli vulnerabilities list --web
|
|
137
140
|
```
|
|
138
141
|
|
|
139
142
|
Flags:
|
|
@@ -145,6 +148,7 @@ Flags:
|
|
|
145
148
|
| `--status <status>` | | Filter by status |
|
|
146
149
|
| `--limit <n>` | `-L` | Max results (default: 30, max: 100) |
|
|
147
150
|
| `--output <format>` | `-o` | Output format: `table` (default), `json`, `tsv` |
|
|
151
|
+
| `--web` | `-w` | Open vulnerabilities dashboard in browser |
|
|
148
152
|
|
|
149
153
|
Supported filter values:
|
|
150
154
|
|
package/dist/index.js
CHANGED
|
@@ -26831,7 +26831,7 @@ function buildAuthStatusInfo(token, refreshToken, selectedOrganizationId) {
|
|
|
26831
26831
|
}
|
|
26832
26832
|
}
|
|
26833
26833
|
function createStatusCommand() {
|
|
26834
|
-
return new Command("status").description("Show current authentication status").option("-o, --output <format>", "Output format: table
|
|
26834
|
+
return new Command("status").description("Show current authentication status").option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").addHelpText(
|
|
26835
26835
|
"after",
|
|
26836
26836
|
`
|
|
26837
26837
|
Examples:
|
|
@@ -26897,7 +26897,7 @@ Examples:
|
|
|
26897
26897
|
});
|
|
26898
26898
|
}
|
|
26899
26899
|
function createOrgListCommand() {
|
|
26900
|
-
return new Command("list").description("List organizations available to your account").option("-o, --output <format>", "Output format: table
|
|
26900
|
+
return new Command("list").description("List organizations available to your account").option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").option("-L, --limit <n>", "Max organizations to display (default: all)", (v) => {
|
|
26901
26901
|
const n = Number.parseInt(v, 10);
|
|
26902
26902
|
if (Number.isNaN(n) || n < 1) {
|
|
26903
26903
|
throw new Error("--limit must be a positive integer");
|
|
@@ -26977,7 +26977,7 @@ Examples:
|
|
|
26977
26977
|
});
|
|
26978
26978
|
}
|
|
26979
26979
|
function createOrgCurrentCommand() {
|
|
26980
|
-
return new Command("current").description("Show the active organization used by CLI commands").option("-o, --output <format>", "Output format: table
|
|
26980
|
+
return new Command("current").description("Show the active organization used by CLI commands").option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").option("-w, --web", "Open the organization settings in a browser").addHelpText(
|
|
26981
26981
|
"after",
|
|
26982
26982
|
`
|
|
26983
26983
|
Examples:
|
|
@@ -29078,7 +29078,7 @@ function createListCommand3() {
|
|
|
29078
29078
|
}
|
|
29079
29079
|
return Math.min(n, MAX_LIMIT3);
|
|
29080
29080
|
}
|
|
29081
|
-
).option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").addHelpText(
|
|
29081
|
+
).option("-o, --output <format>", "Output format: table, json, tsv (default: table)", "table").option("-w, --web", "Open the vulnerabilities dashboard in a browser").addHelpText(
|
|
29082
29082
|
"after",
|
|
29083
29083
|
`
|
|
29084
29084
|
Examples:
|
|
@@ -29086,9 +29086,19 @@ Examples:
|
|
|
29086
29086
|
tracecli vulnerabilities list --severity CRITICAL --status OPEN
|
|
29087
29087
|
tracecli vulnerabilities list --repo securewithtrace/trace --limit 50
|
|
29088
29088
|
tracecli vulnerabilities list --output json | jq '.[].title'
|
|
29089
|
-
tracecli vulnerabilities list --output tsv | cut -f1,7
|
|
29089
|
+
tracecli vulnerabilities list --output tsv | cut -f1,7
|
|
29090
|
+
tracecli vulnerabilities list --web`
|
|
29090
29091
|
).action(
|
|
29091
29092
|
async (options) => {
|
|
29093
|
+
if (options.web) {
|
|
29094
|
+
const slug = await resolveOrganizationSlug();
|
|
29095
|
+
const url2 = `${getAppBaseUrl()}/dashboard/${slug}/vulnerabilities`;
|
|
29096
|
+
const opened = await openBrowser(url2);
|
|
29097
|
+
if (!opened) {
|
|
29098
|
+
console.log(`Open in browser: ${url2}`);
|
|
29099
|
+
}
|
|
29100
|
+
return;
|
|
29101
|
+
}
|
|
29092
29102
|
const organizationId = await resolveOrganizationId();
|
|
29093
29103
|
const conditions = [];
|
|
29094
29104
|
if (options.repo) {
|