MCPcopy
hub / github.com/cacjs/cac / action

Method action

src/command.ts:111–114  ·  view source on GitHub ↗
(callback: (...args: any[]) => any)

Source from the content-addressed store, hash-verified

109 }
110
111 action(callback: (...args: any[]) => any): this {
112 this.commandAction = callback
113 return this
114 }
115
116 /**
117 * Check if a command name is matched by this command

Callers 8

index.test.tsFile · 0.80
help.tsFile · 0.80
sub-command.tsFile · 0.80
default-command.tsFile · 0.80
command-options.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected