Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/drizzle-team/brocli
/ functions
Functions
52 in github.com/drizzle-team/brocli
⨍
Functions
52
◇
Types & classes
6
↓ 75 callers
Method
alias
( ...aliases: string[] )
src/option-builder.ts:161
↓ 70 callers
Function
run
( commands: Command[], config?: BroCliConfig<TOpts>, )
src/command-core.ts:915
↓ 61 callers
Function
getArgs
(str: string)
tests/main.test.ts:20
↓ 50 callers
Function
command
(command: RawCommand<TOpts, TOptsData, TTransformed>)
src/command-core.ts:238
↓ 49 callers
Function
boolean
(name?: TName)
src/option-builder.ts:426
↓ 34 callers
Method
desc
(description: TDescription)
src/option-builder.ts:176
↓ 33 callers
Function
string
(name?: TName)
src/option-builder.ts:382
↓ 18 callers
Function
preparsedGlobals
()
src/command-core.ts:946
↓ 11 callers
Method
default
(value: TDefVal)
src/option-builder.ts:215
↓ 10 callers
Function
executeOrLog
(target?: string | Function, arg?: any)
src/util.ts:9
↓ 9 callers
Function
positional
(displayName?: string)
src/option-builder.ts:446
↓ 9 callers
Function
shellArgs
(str: string)
src/util.ts:7
↓ 8 callers
Function
getCommandNameWithParents
(command: Command)
src/command-core.ts:803
↓ 8 callers
Method
hidden
()
src/option-builder.ts:189
↓ 7 callers
Method
enum
( ...values: TValues )
src/option-builder.ts:236
↓ 5 callers
Function
getOptionTypeText
(option: BuilderConfig)
src/event-handler.ts:117
↓ 4 callers
Function
generatePrefix
(name: string)
src/command-core.ts:135
↓ 4 callers
Function
number
(name?: TName)
src/option-builder.ts:404
↓ 3 callers
Function
getCommand
( commands: Command[], args: string[], cliName: string | undefined, cliDescription: string | undefined, )
src/command-core.ts:356
↓ 3 callers
Method
required
()
src/option-builder.ts:202
↓ 2 callers
Method
boolean
( name?: string, )
src/option-builder.ts:131
↓ 2 callers
Function
handler
( options: TOpts, handler: CommandHandler<TOpts>, )
src/command-core.ts:1125
↓ 2 callers
Method
int
()
src/option-builder.ts:295
↓ 2 callers
Method
number
( name?: string, )
src/option-builder.ts:107
↓ 2 callers
Function
parseArg
( command: Command | 'globals', options: [string, ProcessedBuilderConfig][], positionals: [string, Processe
src/command-core.ts:420
↓ 2 callers
Function
parseGlobals
( command: Command | 'globals', globals: ProcessedOptions<Record<string, GenericBuilderInternals>> | undefin
src/command-core.ts:734
↓ 2 callers
Function
parseOptions
( command: Command, args: string[], cliName: string | undefined, cliDescription: string | undefined, omit
src/command-core.ts:655
↓ 2 callers
Method
positional
(displayName?: string)
src/option-builder.ts:155
↓ 2 callers
Function
removeByIndex
(arr: T[], idx: number)
src/command-core.ts:906
↓ 2 callers
Method
string
( name?: string, )
src/option-builder.ts:83
↓ 2 callers
Function
validateCommands
(commands: Command[], parent?: Command)
src/command-core.ts:806
↓ 2 callers
Function
validateOptions
( config: TOptionConfig, )
src/command-core.ts:137
↓ 1 callers
Function
assignParent
(parent: Command, subcommands: Command[])
src/command-core.ts:232
↓ 1 callers
Function
defaultEventHandler
(event)
src/event-handler.ts:182
↓ 1 callers
Function
eventHandlerWrapper
(customEventHandler: EventHandler<TOpts>)
src/event-handler.ts:603
↓ 1 callers
Function
getCommandInner
( commands: Command[], candidates: CommandCandidate[], args: string[], cliName: string | undefined, cliDe
src/command-core.ts:306
↓ 1 callers
Function
isInt
(value: number)
src/util.ts:3
↓ 1 callers
Method
max
(value: number)
src/option-builder.ts:277
↓ 1 callers
Method
min
(value: number)
src/option-builder.ts:259
↓ 1 callers
Function
validateGlobals
( commands: Command[], globals: ProcessedOptions<Record<string, GenericBuilderInternals>> | undefined, )
src/command-core.ts:896
↓ 1 callers
Function
validateGlobalsInner
( commands: Command[], globals: GenericBuilderInternalsFields[], )
src/command-core.ts:850
Function
commandsInfo
( commands: Command[], )
src/command-core.ts:1156
Method
constructor
(public event: BroCliEvent, message?: string)
src/validation-error.ts:4
Method
constructor
(config?: TBuilderConfig)
src/option-builder.ts:57
Method
constructor
(message: string | undefined, public event?: BroCliEvent)
src/brocli-error.ts:9
Function
help
(options)
tests/main.test.ts:1814
Function
hook
(event, command, globals)
tests/main.test.ts:1791
Function
outExtension
(ctx)
scripts/build.ts:14
Function
test
( command: Command<TOpts, THandlerInput>, args: string, )
src/command-core.ts:1130
Function
testTheme
(event)
tests/main.test.ts:34
Function
theme
(event, options)
tests/main.test.ts:1878
Function
version
(options)
tests/main.test.ts:1846