feat(cli): add stop command to shut down running daemon
This commit is contained in:
1 parent
2b8171cc37
commit
48411dccd2
8 files changed
+498
-19
No files matched your search
@@ -13,6 +13,17 @@ export class UsageError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
/** A user-facing failure: printed as-is, exits with `code`. */
|
||||
export class CliError extends Error {
|
||||
readonly code: number;
|
||||
|
||||
constructor(message: string, code = 1) {
|
||||
super(message);
|
||||
this.name = "CliError";
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
|
||||
export type FlagValue = string | boolean;
|
||||
|
||||
export interface FlagSpec {
|
||||
|
||||
Reference in new issue
Block a user