@flowscripter/dynamic-cli-framework
Preparing search index...
DefaultCompletionService
Class DefaultCompletionService
Interface for a service providing shell auto-completion support.
Implements
CompletionService
Index
Constructors
constructor
Methods
format
Completions
generate
Completions
get
Bootstrap
Script
get
Default
Config
Path
parse
Completion
Context
set
Command
Registry
validate
Shell
Environment
Constructors
constructor
new
DefaultCompletionService
()
:
DefaultCompletionService
Returns
DefaultCompletionService
Methods
format
Completions
formatCompletions
(
shellType
:
ShellType
,
completions
:
readonly
CompletionItem
[]
,
)
:
string
Parameters
shellType
:
ShellType
completions
:
readonly
CompletionItem
[]
Returns
string
generate
Completions
generateCompletions
(
_shellType
:
ShellType
,
line
:
string
,
cursorPosition
:
number
,
)
:
Promise
<
readonly
CompletionItem
[]
>
Parameters
_shellType
:
ShellType
line
:
string
cursorPosition
:
number
Returns
Promise
<
readonly
CompletionItem
[]
>
get
Bootstrap
Script
getBootstrapScript
(
shellType
:
ShellType
,
cliName
:
string
,
executablePath
:
string
,
)
:
string
Parameters
shellType
:
ShellType
cliName
:
string
executablePath
:
string
Returns
string
get
Default
Config
Path
getDefaultConfigPath
(
shellType
:
ShellType
)
:
string
Parameters
shellType
:
ShellType
Returns
string
parse
Completion
Context
parseCompletionContext
(
shell
:
ShellType
,
args
:
readonly
string
[]
,
)
:
{
cursorPosition
:
number
;
line
:
string
}
Parameters
shell
:
ShellType
args
:
readonly
string
[]
Returns
{
cursorPosition
:
number
;
line
:
string
}
set
Command
Registry
setCommandRegistry
(
registry
:
CommandRegistry
)
:
void
Parameters
registry
:
CommandRegistry
Returns
void
validate
Shell
Environment
validateShellEnvironment
(
shellType
:
ShellType
)
:
Promise
<
boolean
>
Parameters
shellType
:
ShellType
Returns
Promise
<
boolean
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
format
Completions
generate
Completions
get
Bootstrap
Script
get
Default
Config
Path
parse
Completion
Context
set
Command
Registry
validate
Shell
Environment
@flowscripter/dynamic-cli-framework
Loading...
Interface for a service providing shell auto-completion support.