MCPcopy Create free account

hub / github.com/cacjs/cac / functions

Functions52 in github.com/cacjs/cac

↓ 13 callersFunctioncac
(name = '')
src/index.ts:7
↓ 13 callersMethodparse
* Parse argv
src/cac.ts:174
↓ 11 callersMethodoption
* Add a global CLI option. * * Which is also applied to sub-commands.
src/cac.ts:92
↓ 10 callersMethodcommand
* Add a sub-command
src/cac.ts:76
↓ 8 callersMethodaction
(callback: (...args: any[]) => any)
src/command.ts:111
↓ 6 callersMethodhelp
* Show help message when `-h, --help` flags appear. *
src/cac.ts:101
↓ 3 callersFunctionexample
(file: string)
tests/index.test.ts:7
↓ 3 callersMethodexample
* Add a global example. * * This example added here will not be used by sub-commands.
src/cac.ts:123
↓ 3 callersMethodversion
* Show version number when `-v, --version` flags appear. *
src/cac.ts:112
↓ 2 callersMethodalias
(name: string)
src/command.ts:106
↓ 2 callersFunctioncamelcaseOptionName
(name: string)
src/utils.ts:156
↓ 2 callersMethodcheckOptionValue
* Check if the required string-type options exist
src/command.ts:294
↓ 2 callersFunctionremoveBrackets
(v: string)
src/utils.ts:3
↓ 1 callersFunctioncamelcase
(input: string)
src/utils.ts:96
↓ 1 callersMethodcheckRequiredArgs
()
src/command.ts:258
↓ 1 callersMethodcheckUnknownOptions
* Check if the parsed options contain any unknown options * * Exit and output error when true
src/command.ts:273
↓ 1 callersMethodcheckUnusedArgs
* Check if the number of args is more than expected
src/command.ts:314
↓ 1 callersFunctionfindAllBrackets
(v: string)
src/utils.ts:7
↓ 1 callersFunctionfindLongest
(arr: string[])
src/utils.ts:88
↓ 1 callersFunctiongetFileName
(input: string)
src/utils.ts:151
↓ 1 callersFunctiongetMriOptions
(options: Option[])
src/utils.ts:51
↓ 1 callersFunctiongetOutput
(file: string, args: string[] = [])
tests/index.test.ts:29
↓ 1 callersFunctiongetRuntimeProcessArgs
()
src/runtime.ts:26
↓ 1 callersMethodhasOption
* Check if an option is registered in this command * @param name Option name
src/command.ts:136
↓ 1 callersMethodisMatched
* Check if a command name is matched by this command * @param name Command name
src/command.ts:120
↓ 1 callersMethodmri
( argv: string[], /** Matched command */ command?: Command, )
src/cac.ts:264
↓ 1 callersMethodoption
* Add a option for this command * @param rawName Raw option name(s) * @param description Option description * @param config Option config
src/command.ts:100
↓ 1 callersMethodoutputHelp
* Output the corresponding help message * When a sub-command is matched, output the help message for the command * Otherwise output the global o
src/cac.ts:134
↓ 1 callersMethodoutputVersion
* Output the version number. *
src/cac.ts:146
↓ 1 callersFunctionpadRight
(str: string, length: number)
src/utils.ts:92
↓ 1 callersFunctionparse
(match: string[])
src/utils.ts:17
↓ 1 callersMethodrunMatchedCommand
()
src/cac.ts:342
↓ 1 callersFunctionsetByType
( obj: { [k: string]: any }, transforms: { [k: string]: any }, )
src/utils.ts:134
↓ 1 callersFunctionsetDotProp
( obj: Record<string, any>, keys: string[], val: any, )
src/utils.ts:104
↓ 1 callersMethodsetParsedInfo
( { args, options }: ParsedArgv, matchedCommand?: Command, matchedCommandName?: string, )
src/cac.ts:150
↓ 1 callersFunctionsnapshotOutput
({ title, file, args, }: { title: string file: string args?: string[] })
tests/index.test.ts:14
↓ 1 callersMethodunsetMatchedCommand
()
src/cac.ts:166
↓ 1 callersMethodusage
* Add a global usage text. * * This is not used by sub-commands.
src/cac.ts:68
MethodallowUnknownOptions
()
src/command.ts:73
Methodconstructor
(rawName: string, description: string, config?: OptionConfig)
src/option.ts:22
Methodconstructor
* @param name The program name to display in help and version message
src/cac.ts:52
Methodconstructor
(message: string)
src/utils.ts:168
Methodconstructor
( rawName: string, description: string, config: CommandConfig | undefined = {}, cli: CAC, )
src/command.ts:50
Methodconstructor
(cli: CAC)
src/command.ts:330
Methodexample
(example: CommandExample)
src/command.ts:89
MethodignoreOptionDefaultValue
()
src/command.ts:78
MethodisDefaultCommand
()
src/command.ts:124
MethodisGlobalCommand
()
src/command.ts:128
MethodoutputHelp
()
src/command.ts:143
MethodoutputVersion
()
src/command.ts:250
Methodusage
(text: string)
src/command.ts:68
Methodversion
(version: string, customFlags = '-v, --version')
src/command.ts:83