MCPcopy Create free account
hub / github.com/diillson/chatcli / systemCommandCompleter

Method systemCommandCompleter

cli/cli_completer.go:485–492  ·  view source on GitHub ↗

systemCommandCompleter é uma função dedicada para autocompletar comandos do sistema

(prefix string)

Source from the content-addressed store, hash-verified

483
484// systemCommandCompleter é uma função dedicada para autocompletar comandos do sistema
485func (cli *ChatCLI) systemCommandCompleter(prefix string) []prompt.Suggest {
486 completions := cli.completeSystemCommands(prefix)
487 suggestions := make([]prompt.Suggest, 0, len(completions))
488 for _, c := range completions {
489 suggestions = append(suggestions, prompt.Suggest{Text: c})
490 }
491 return suggestions
492}
493
494// completeFilePath autocompleta caminhos de arquivos
495func (cli *ChatCLI) completeFilePath(prefix string) []string {

Callers 1

completeAtTokenArgsMethod · 0.95

Calls 1

Tested by

no test coverage detected