mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 05:41:37 +00:00
20 lines
340 B
TypeScript
20 lines
340 B
TypeScript
// Stores process-global CLI flags shared by command modules.
|
|
let globalVerbose = false;
|
|
let globalYes = false;
|
|
|
|
export function setVerbose(v: boolean) {
|
|
globalVerbose = v;
|
|
}
|
|
|
|
export function isVerbose() {
|
|
return globalVerbose;
|
|
}
|
|
|
|
export function setYes(v: boolean) {
|
|
globalYes = v;
|
|
}
|
|
|
|
export function isYes() {
|
|
return globalYes;
|
|
}
|