Skip to content

Commit

Permalink
Fix syntax error in ZSH completion
Browse files Browse the repository at this point in the history
  • Loading branch information
molikuner authored and mr-karan committed Oct 14, 2023
1 parent c72c2ef commit 8e6797f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions completions/doggo.zsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#compdef doggo
#compdef _doggo doggo

__doggo() {
_doggo() {
_arguments \
"(- 1 *)"{-v,--version}"[Show version of doggo]" \
"(- 1 *)"{-\?,--help}"[Show list of command-line options]" \
Expand All @@ -9,10 +9,8 @@ __doggo() {
{-n,--nameserver}"[Address of a specific nameserver to send queries to]::_hosts;" \
{-c,--class}"[Network class of the DNS record being queried]:(network class):(IN CH HS)" \
{-J,--json}"[Format the output as JSON]" \
{--color}"[Defaults to true. Set --color=false to disable colored output]:(setting):(true false)" \
{--debug}"[Enable debug logging]:(setting):(true false)" \
--time"[Shows how long the response took from the server"] \
'*:filename:_hosts'
--color"[Defaults to true. Set --color=false to disable colored output]:(setting):(true false)" \
--debug"[Enable debug logging]:(setting):(true false)" \
--time"[Shows how long the response took from the server]" \
'*:hostname:_hosts'
}

__doggo

0 comments on commit 8e6797f

Please sign in to comment.