refactor: polish providers cli status
This commit is contained in:
1 parent
bf2daeb3ae
commit
3f93781b4b
5 files changed
+40
-16
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import type { Command } from "commander";
|
||||
|
||||
export function hasExplicitOptions(
|
||||
command: Command,
|
||||
names: readonly string[],
|
||||
): boolean {
|
||||
if (typeof command.getOptionValueSource !== "function") {
|
||||
return false;
|
||||
}
|
||||
return names.some((name) => command.getOptionValueSource(name) === "cli");
|
||||
}
|
||||
Reference in new issue
Block a user