feat(models): show auth overview
This commit is contained in:
@@ -23,7 +23,13 @@ import { defaultRuntime } from "../runtime.js";
|
||||
export function registerModelsCli(program: Command) {
|
||||
const models = program
|
||||
.command("models")
|
||||
.description("Model discovery, scanning, and configuration");
|
||||
.description("Model discovery, scanning, and configuration")
|
||||
.option("--json", "Output JSON (alias for `models status --json`)", false)
|
||||
.option(
|
||||
"--plain",
|
||||
"Plain output (alias for `models status --plain`)",
|
||||
false,
|
||||
);
|
||||
|
||||
models
|
||||
.command("list")
|
||||
@@ -264,9 +270,9 @@ export function registerModelsCli(program: Command) {
|
||||
}
|
||||
});
|
||||
|
||||
models.action(async () => {
|
||||
models.action(async (opts) => {
|
||||
try {
|
||||
await modelsStatusCommand({}, defaultRuntime);
|
||||
await modelsStatusCommand(opts ?? {}, defaultRuntime);
|
||||
} catch (err) {
|
||||
defaultRuntime.error(String(err));
|
||||
defaultRuntime.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user