mirror of
https://github.com/spf13/cobra
synced 2025-01-01 09:16:42 +00:00
Format with spaces instead of tabs
This commit is contained in:
parent
e7abbf39a3
commit
7eac0e11ae
1 changed files with 85 additions and 87 deletions
|
@ -24,8 +24,6 @@ import (
|
||||||
func (c *Command) GenNushellCompletion(w io.Writer, includeDesc bool) error {
|
func (c *Command) GenNushellCompletion(w io.Writer, includeDesc bool) error {
|
||||||
buf := new(bytes.Buffer)
|
buf := new(bytes.Buffer)
|
||||||
WriteStringAndCheck(buf, fmt.Sprintf(`
|
WriteStringAndCheck(buf, fmt.Sprintf(`
|
||||||
# An external completer that works with any cobra based
|
|
||||||
# command line application (e.g. kubectl, minikube)
|
|
||||||
let cobra_completer = {|spans|
|
let cobra_completer = {|spans|
|
||||||
let ShellCompDirectiveError = %[1]d
|
let ShellCompDirectiveError = %[1]d
|
||||||
let ShellCompDirectiveNoSpace = %[2]d
|
let ShellCompDirectiveNoSpace = %[2]d
|
||||||
|
|
Loading…
Reference in a new issue