@pushary/agent-hooks 0.63.0 → 0.63.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/CHANGELOG.md +9 -0
- package/dist/bin/pushary-status.js +7 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.63.1
|
|
4
|
+
|
|
5
|
+
### `pushary status --bogus` printed a stack trace
|
|
6
|
+
|
|
7
|
+
An unknown flag on `status` threw where nothing was catching it, so Node printed
|
|
8
|
+
a raw stack trace and exited `1` instead of the clean usage error and exit `2`
|
|
9
|
+
every other command gives. Other commands were unaffected.
|
|
10
|
+
|
|
11
|
+
|
|
3
12
|
## 0.63.0
|
|
4
13
|
|
|
5
14
|
### Machines
|
|
@@ -183,7 +183,13 @@ var statusJson = (facts, report) => ({
|
|
|
183
183
|
exitOnHelpFlag("status");
|
|
184
184
|
var { bold, dim, green, red, yellow } = createIo();
|
|
185
185
|
var args = process.argv.slice(2);
|
|
186
|
-
|
|
186
|
+
try {
|
|
187
|
+
rejectUnknownFlags(args.filter((a) => a !== "status"), ["--json", "--devices"]);
|
|
188
|
+
} catch (err) {
|
|
189
|
+
process.stderr.write(` ! ${err instanceof Error ? err.message : String(err)}
|
|
190
|
+
`);
|
|
191
|
+
process.exit(EXIT.USAGE);
|
|
192
|
+
}
|
|
187
193
|
var json = args.includes("--json");
|
|
188
194
|
var devices = args.includes("--devices");
|
|
189
195
|
var main = async () => {
|