fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
7360deee7
master
1# NOTE: Fish helper functions are your best friend here! 2# see https://github.com/fish-shell/fish-shell/blob/master/share/functions/__fish_seen_subcommand_from.fish 3# and https://github.com/fish-shell/fish-shell/blob/master/share/functions/__fish_use_subcommand.fish 4 5# help commands 6complete -f -c bzr -n __fish_use_subcommand -a help -d'Show help' 7complete -f -c bzr -n'__fish_seen_subcommand_from help' -a topics -d'List all help topics' 8complete -f -c bzr -n'__fish_seen_subcommand_from help' -a commands -d'List all commands' 9complete -f -c bzr -n'__fish_seen_subcommand_from help' -a formats -d'Help about supported formats' 10complete -f -c bzr -n'__fish_seen_subcommand_from help' -a current-formats -d'Help about current supported formats' 11complete -f -c bzr -n'__fish_seen_subcommand_from help' -a revisionspec -d'How to specify revisions in bzr' 12complete -f -c bzr -n'__fish_seen_subcommand_from help' -a bugs -d'Show bug tracker settings in bzr' 13# TODO: Add help about specific commands generating the output 14 15# init command 16complete -f -c bzr -n __fish_use_subcommand -a init -d'Makes this directory a versioned branch' 17complete -f -c bzr -n'__fish_seen_subcommand_from init' -l create-prefix -d'Create the path leading up to the branch if it does not already exists' 18complete -f -c bzr -n'__fish_seen_subcommand_from init' -l no-tree -d'Create a branch without a working tree' 19complete -f -c bzr -n'__fish_seen_subcommand_from init' -l append-revisions-only -d'Never change revnos or the existing log. Append revisions to it only' 20# TODO: Add init using path directory 21 22# branch command 23complete -f -c bzr -n __fish_use_subcommand -a branch -d'Make a copy of another branch' 24complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l use-existing-dir -d'Proceed even if directory exits' 25complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l stacked -d'Create a stacked branch referring to the source branch' 26complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l standalone -d'Do not use a shared repository, even if available' 27complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l switch -d'Switch the checkout in the current directory to the new branch' 28complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l hardlink -d'Hard-link working tree files where possible' 29complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l bind -d'Bind new branch to from location' 30complete -f -c bzr -n'__fish_seen_subcommand_from branch' -l no-tree -d'Create a branch without a working-tree' 31# TODO: Add source/destination branch or directory 32 33# add command 34complete -f -c bzr -n __fish_use_subcommand -a add -d'Make files or directories versioned' 35complete -f -c bzr -n'__fish_seen_subcommand_from add' -l no-recurse -s N -d'Don\'t recursively add the contents of directories' 36 37# ignore command 38complete -f -c bzr -n __fish_use_subcommand -a ignore -d'Ignore a file or pattern' 39complete -f -c bzr -n'__fish_seen_subcommand_from ignore' -l default-rules -d'Display the default ignore rules that bzr uses' 40 41# mv command 42complete -f -c bzr -n __fish_use_subcommand -a mv -d'Move or rename a versioned file' 43complete -f -c bzr -n'__fish_seen_subcommand_from mv' -l auto -d'Automatically guess renames' 44complete -f -c bzr -n'__fish_seen_subcommand_from mv' -l after -d'Move only the bzr identifier of the file, because the file has already been moved' 45 46# status command 47complete -f -c bzr -n __fish_use_subcommand -a status -d'Summarize changes in working copy' 48complete -f -c bzr -n'__fish_seen_subcommand_from status' -l short -s S -d'Use short status indicators' 49complete -f -c bzr -n'__fish_seen_subcommand_from status' -l versioned -s V -d'Only show versioned files' 50complete -f -c bzr -n'__fish_seen_subcommand_from status' -l no-pending -d'Don\'t show pending merges' 51complete -f -c bzr -n'__fish_seen_subcommand_from status' -l no-classify -d'Do not mark object type using indicator' 52complete -f -c bzr -n'__fish_seen_subcommand_from status' -l show-ids -d'Show internal object ids' 53 54# diff command 55complete -f -c bzr -n __fish_use_subcommand -a diff -d'Show detailed diffs' 56# TODO: Add file diff options 57 58# merge command 59complete -f -c bzr -n __fish_use_subcommand -a merge -d'Pull in changes from another branch' 60complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l pull -d'If destination is already merged, pull rather than merging' 61complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l remember -d'Remember the specified location as a default' 62complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l force -d'Merge even if the destination tree has uncommitted changes' 63complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l reprocess -d'Reprocess to reduce spurious conflicts' 64complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l uncommitted -d'Apply uncommitted changes from a working copy, instead of branch changes' 65complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l show-base -d'Show base revision text in conflicts' 66complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l preview -d'Instead of merging, show a diff of the merge' 67complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l interactive -s i -d'Select changes interactively' 68complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l directory -s d -d'Branch to merge into, rather than the one containing the working directory' 69complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l change -s c -d'Select changes introduced by the specified revision' 70complete -f -c bzr -n'__fish_seen_subcommand_from merge' -l revision -s r -d'Select changes introduced by the specified revision' 71 72# commit command 73complete -f -c bzr -n __fish_use_subcommand -a commit -d'Save some or all changes' 74complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l show-diff -s p -d'When no message is supplied, show diff along with status summary in message editor' 75complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l file -s F -d'Take commit message from this file' 76complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l exclude -s x -d'Do not consider changes made to a given path' 77complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l message -s m -d'Description of the new revision' 78complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l author -d'Set the author\'s name, if it\'s different from the committer' 79complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l commit-time -d'Manually set a commit time using commit date format' 80complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l unchanged -d'Commit even if nothing has changed' 81complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l fixes -d'Mark a bug as being fixed by this revision' 82complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l strict -d'Refuse to commit if there are unknown files in the working tree' 83complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l lossy -d'When committing to a foreign vcs do not push data that can not be natively represented' 84complete -f -c bzr -n'__fish_seen_subcommand_from commit' -l local -d'Perform a local commit in a bound branch (pushed to master on normal commit)' 85 86# send command 87complete -f -c bzr -n __fish_use_subcommand -a send -d'Send changes via email' 88complete -f -c bzr -n'__fish_seen_subcommand_from send' -l body -d'Body for the email' 89complete -f -c bzr -n'__fish_seen_subcommand_from send' -l remember -d'Remember submit and public branch' 90complete -f -c bzr -n'__fish_seen_subcommand_from send' -l mail-to -d'Mail the request to this address' 91complete -f -c bzr -n'__fish_seen_subcommand_from send' -l format -d'Use the specified output format' 92complete -f -c bzr -n'__fish_seen_subcommand_from send' -l no-bundle -d'Do not include a bundle in the merge directive' 93complete -f -c bzr -n'__fish_seen_subcommand_from send' -l strict -d'Refuse to send if there are uncommitted changes in the working tree' 94complete -f -c bzr -n'__fish_seen_subcommand_from send' -l no-patch -d'Do not include a preview patch in the merge directive' 95 96# log command 97complete -f -c bzr -n __fish_use_subcommand -a log -d'Show history of changes' 98 99# check command 100complete -f -c bzr -n __fish_use_subcommand -a check -d'Validate storage' 101complete -f -c bzr -n'__fish_seen_subcommand_from check' -l tree -d'Check the working tree related to the current directory' 102complete -f -c bzr -n'__fish_seen_subcommand_from check' -l repo -d'Check the repository related to the current directory' 103complete -f -c bzr -n'__fish_seen_subcommand_from check' -l branch -d'Check the branch related to the current directory' 104 105# Common long/short options 106set -l$cmds init branch add ignore mv status diff merge commit send log check 107complete -f -c bzr -n'__fish_seen_subcommand_from $cmds' -l usage -d'Show usage message and options' 108complete -f -c bzr -n'__fish_seen_subcommand_from $cmds' -s h -l help -d'Show help message' 109complete -f -c bzr -n'__fish_seen_subcommand_from $cmds' -s q -l quiet -d'Only displays errors and warnings' 110complete -f -c bzr -n'__fish_seen_subcommand_from $cmds' -s v -l verbose -d'Display more information' 111 112# Commands with dry-run option 113complete -f -c bzr -n'__fish_seen_subcommand_from add mv' -l dry-run -d'Show what would be done'