refactor: polish providers cli status

This commit is contained in:
Peter Steinberger committed 2026-01-08 04:07:09 +01:00
1 parent bf2daeb3ae
commit 3f93781b4b
5 files changed
+40 -16

No files matched your search

+11
View File
@@ -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");
}