MCPcopy
hub / github.com/MiniMax-AI/cli / defineCommand

Function defineCommand

src/command.ts:31–41  ·  view source on GitHub ↗
(spec: CommandSpec)

Source from the content-addressed store, hash-verified

29}
30
31export function defineCommand(spec: CommandSpec): Command {
32 return {
33 name: spec.name,
34 description: spec.description,
35 usage: spec.usage,
36 options: spec.options,
37 examples: spec.examples,
38 apiDocs: spec.apiDocs,
39 execute: spec.run,
40 };
41}
42
43/** Global flags shared by all commands — drives the parser's type resolution. */
44export const GLOBAL_OPTIONS: OptionDef[] = [

Callers 15

update.tsFile · 0.90
help.tsFile · 0.90
generate.tsFile · 0.90
status.tsFile · 0.90
login.tsFile · 0.90
refresh.tsFile · 0.90
logout.tsFile · 0.90
show.tsFile · 0.90
query.tsFile · 0.90
generate.tsFile · 0.90
cover.tsFile · 0.90
describe.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected