{"modulePath":"github.com/context-dot-dev/context-dev-cli","version":"v1.28.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package autocomplete\n\n## Constants\n\n```go\nconst (\n\tShellCompletionBehaviorDefault ShellCompletionBehavior = iota\n\tShellCompletionBehaviorFile                            = 10\n\tShellCompletionBehaviorNoComplete\n)\n```\n\n## Functions\n\n```go\nfunc ExecuteShellCompletion(ctx context.Context, cmd *cli.Command) error\n```\n\n```go\nfunc OutputCompletionScript(ctx context.Context, cmd *cli.Command) error\n```\n\n## Types\n\n```go\ntype CompletionResult struct {\n\tCompletions []ShellCompletion\n\tBehavior    ShellCompletionBehavior\n}\n```\n\n```go\nfunc GetCompletions(completionStyle CompletionStyle, root *cli.Command, args []string) CompletionResult\n```\n\n```go\ntype CompletionStyle string\n```\n\n```go\nconst (\n\tCompletionStyleZsh        CompletionStyle = \"zsh\"\n\tCompletionStyleBash       CompletionStyle = \"bash\"\n\tCompletionStylePowershell CompletionStyle = \"pwsh\"\n\tCompletionStyleFish       CompletionStyle = \"fish\"\n)\n```\n\n```go\ntype ShellCompletion struct {\n\tName  string\n\tUsage string\n}\n```\n\n```go\nfunc NewShellCompletion(name string, usage string) ShellCompletion\n```\n\n```go\ntype ShellCompletionBehavior int\n```\n\n","path":"github.com/context-dot-dev/context-dev-cli/internal/autocomplete","name":"autocomplete","synopsis":"","isRedistributable":true}
