mirror of
https://github.com/spf13/cobra
synced 2025-01-01 17:26:42 +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 ShellCompDirectiveNoFileComp = %[4]d
|
||||||
let ShellCompDirectiveFilterFileExt = %[5]d
|
let ShellCompDirectiveFilterFileExt = %[5]d
|
||||||
let ShellCompDirectiveFilterDirs = %[6]d
|
let ShellCompDirectiveFilterDirs = %[6]d
|
||||||
|
|
||||||
let last_span = ($spans | last | str trim)
|
let last_span = ($spans | last | str trim)
|
||||||
|
|
||||||
def exec_complete [
|
def exec_complete [
|
||||||
|
@ -51,7 +50,6 @@ let cobra_completer = {|spans|
|
||||||
last_span: ($spans | last | str trim),
|
last_span: ($spans | last | str trim),
|
||||||
spans: $spans
|
spans: $spans
|
||||||
}
|
}
|
||||||
|
|
||||||
# If there is an equals in the last span
|
# If there is an equals in the last span
|
||||||
# parse the span into two
|
# parse the span into two
|
||||||
let params = if $last_span =~ '=' {
|
let params = if $last_span =~ '=' {
|
||||||
|
@ -159,12 +157,6 @@ let cobra_completer = {|spans|
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
`, name, ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,
|
`, name, ShellCompDirectiveError, ShellCompDirectiveNoSpace, ShellCompDirectiveNoFileComp,
|
||||||
ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs))
|
ShellCompDirectiveFilterFileExt, ShellCompDirectiveFilterDirs))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue