Skip to content

Commit

Permalink
Merge pull request #11 from sters/master
Browse files Browse the repository at this point in the history
Follow ghq updates
  • Loading branch information
decors authored Jan 15, 2020
2 parents 1582ab5 + 4238b6d commit 66722b7
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions completions/ghq.fish
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ end

# Help
function __fish_ghq_help_topics
for c in get list look import root
for c in get list root create
printf "%s\thelp topic\n" $c
end
end
Expand All @@ -42,27 +42,25 @@ complete -f -c ghq -n "__fish_ghq_using_command get" -l shallow -d "Do a shallow
complete -f -c ghq -n "__fish_ghq_using_command get" -l look -s l -d "Look after get"
complete -f -c ghq -n "__fish_ghq_using_command get" -l vcs -d "Specify VCS backend for cloning" -r -a "(__fish_ghq_vcs)"
complete -f -c ghq -n "__fish_ghq_using_command get" -l silent -s s -d "Clone or update silently"
complete -f -c ghq -n "__fish_ghq_using_command get" -l no-recursive -d "Prevent recursive fetching"
complete -f -c ghq -n "__fish_ghq_using_command get" -l branch -s b -d "Specify branch name. This flag implies --single-branch on Git"
complete -f -c ghq -n "__fish_ghq_using_command get" -l parallel -s P -d "Import parallely"
complete -f -c ghq -n "__fish_ghq_using_command get" -l help -s h -d "Show help"

complete -f -c ghq -n "__fish_ghq_needs_command" -a list -d "List local repositories"
complete -f -c ghq -n "__fish_ghq_using_command list" -l exact -s e -d "Perform an exact match"
complete -f -c ghq -n "__fish_ghq_using_command list" -l vcs -d "Specify VCS backend for matching" -r -a "(__fish_ghq_vcs)"
complete -f -c ghq -n "__fish_ghq_using_command list" -l full-path -s p -d "Print full paths"
complete -f -c ghq -n "__fish_ghq_using_command list" -l unique -d "Print unique subpaths"

complete -f -c ghq -n "__fish_ghq_needs_command" -a look -d "Look into a local repository"
complete -f -c ghq -n "__fish_ghq_using_command look" -a "(ghq list)" -d "local repository"

complete -f -c ghq -n "__fish_ghq_needs_command" -a import -d "Bulk get repositories from stdin"
complete -f -c ghq -n "__fish_ghq_using_command import" -l update -s u -d "Update local repository if cloned already"
complete -f -c ghq -n "__fish_ghq_using_command import" -s p -d "Clone with SSH"
complete -f -c ghq -n "__fish_ghq_using_command import" -l shallow -d "Do a shallow clone"
complete -f -c ghq -n "__fish_ghq_using_command import" -l look -s l -d "Look after get"
complete -f -c ghq -n "__fish_ghq_using_command import" -l vcs -d "Specify VCS backend for cloning" -r -a "(__fish_ghq_vcs)"
complete -f -c ghq -n "__fish_ghq_using_command import" -l silent -s s -d "Clone or update silently"
complete -f -c ghq -n "__fish_ghq_using_command import" -l parallel, -s P -d "[Experimental] Import parallely"
complete -f -c ghq -n "__fish_ghq_using_command list" -l help -s h -d "Show help"

complete -f -c ghq -n "__fish_ghq_needs_command" -a root -d "Show repositories' root"
complete -f -c ghq -n "__fish_ghq_using_command root" -l all -d "Show all roots"
complete -f -c ghq -n "__fish_ghq_using_command root" -l help -s h -d "Show help"

complete -f -c ghq -n "__fish_ghq_needs_command" -a create -d "Create a new repository"
complete -f -c ghq -n "__fish_ghq_using_command create" -l vcs -d "Specify VCS backend explicitly" -r -a "(__fish_ghq_vcs)"
complete -f -c ghq -n "__fish_ghq_using_command create" -l help -s h -d "Show help"

complete -f -c ghq -n "__fish_ghq_needs_command" -l help -s h -d "show help"
complete -f -c ghq -n "__fish_ghq_needs_command" -l version -s v -d "print the version"
complete -f -c ghq -n "__fish_ghq_needs_command" -l help -s h -d "Show help"
complete -f -c ghq -n "__fish_ghq_needs_command" -l version -s v -d "Print the version"

0 comments on commit 66722b7

Please sign in to comment.