Merge pull request #162 from yunyingk/fix/assist-status-flag
CI / validate (push) Has been cancelled
CI / validate (push) Has been cancelled
fix: 支持 --status 作为布尔诊断开关与值过滤双重语义
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -832,8 +832,9 @@ export const COMMAND_METADATA: Record<string, CliCommandMetadata> = {
|
||||
"forward": "transfer"
|
||||
},
|
||||
flags: {
|
||||
...flagList("token t user name u hose-token jwt ticket ticket-id auth-code staff staff-id staffId alias corp-name count limit n start offset state status corpid id keyword query q message msg reason matter hours hour duration days day to recipient target remarks comment corp", "value"),
|
||||
...flagList("all a logout admin save import persist switch current overwrite candidates list-candidates qr", "boolean")
|
||||
...flagList("token t user name u hose-token jwt ticket ticket-id auth-code staff staff-id staffId alias corp-name count limit n start offset state corpid id keyword query q message msg reason matter hours hour duration days day to recipient target remarks comment corp", "value"),
|
||||
...flagList("all a logout admin save import persist switch current overwrite candidates list-candidates qr check", "boolean"),
|
||||
...flagList("status", "boolean-or-value")
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -69,7 +69,7 @@ export async function handleLogin(
|
||||
};
|
||||
}
|
||||
|
||||
const checkStatusOnly = booleanOption(parsed.options, ["status"]);
|
||||
const checkStatusOnly = booleanOption(parsed.options, ["status", "check"]);
|
||||
const forceQr = booleanOption(parsed.options, ["qr", "force"]);
|
||||
const isInteractive = Boolean(
|
||||
process.stdin.isTTY && !process.env.CI && process.env.NODE_ENV !== "test"
|
||||
|
||||
Reference in new issue
Block a user