Kui API Documentation - v11.0.0 / @kui-shell/core / CommandLine
@kui-shell/core.CommandLine
This information represents a command line, but split out in various useful ways.
Name | Type |
---|---|
Options |
ParsedOptions |
-
CommandLine
• argv: string
[]
the result of a whitespace split applied to the command
string
that pays attention to backslash escaping and quotations
packages/core/src/models/command.ts:146
• argvNoOptions: string
[]
the residual of argv
without parsedOptions
packages/core/src/models/command.ts:151
• command: string
the raw command string, as given by the user
packages/core/src/models/command.ts:141
• parsedOptions: Options
the dash options parsed out in a way that pays attention to n-ary
options such as --option key value
packages/core/src/models/command.ts:167
• pipeStages: Object
pipeline stages, e.g. if command='a b --foo|c', the pipeStages=[['a','b, '--foo'],'c']
Name | Type |
---|---|
prefix? |
string |
redirect? |
string |
redirector? |
">" | ">>" | "2>&1" | ">&" | ">>&" |
stages |
string [][] |