mirror of
https://github.com/spf13/cobra
synced 2024-12-29 15:57:10 +00:00
"removing extra lines/whitespace"
This commit is contained in:
parent
3b016843b9
commit
4c4bde6586
1 changed files with 6 additions and 14 deletions
|
@ -40,7 +40,6 @@ let cobra_completer = {|spans|
|
|||
let ShellCompDirectiveNoFileComp = %[4]d
|
||||
let ShellCompDirectiveFilterFileExt = %[5]d
|
||||
let ShellCompDirectiveFilterDirs = %[6]d
|
||||
|
||||
let last_span = ($spans | last | str trim)
|
||||
|
||||
def exec_complete [
|
||||
|
@ -51,7 +50,6 @@ let cobra_completer = {|spans|
|
|||
last_span: ($spans | last | str trim),
|
||||
spans: $spans
|
||||
}
|
||||
|
||||
# If there is an equals in the last span
|
||||
# parse the span into two
|
||||
let params = if $last_span =~ '=' {
|
||||
|
@ -159,12 +157,6 @@ let cobra_completer = {|spans|
|
|||
null
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
`, name, ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,
|
||||
ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs))
|
||||
|
||||
|
|
Loading…
Reference in a new issue