fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

AsukaMinatoadd completion for ar (#9720)36e4b0ff3

master
1017 B20 linesraw
1function __single
2    complete -f -c ar -n __fish_use_subcommand -a $argv[1] -d $argv[2] # no dash
3end
4
5__single d "Delete modules from the archive."
6__single m "move members in an archive."
7__single p "Print the specified members of the archive, to the standard output file."
8__single q "Quick append; Historically, add the files member... to the end of archive, without checking for replacement."
9__single r "Insert the files member... into archive (with replacement)."
10__single s "Add an index to the archive, or update it if it already exists."
11__single t "Display a table listing the contents of archive, or those of the files listed in member."
12__single x "Extract members (named member) from the archive."
13
14functions -e __single
15
16# TODO add mod
17# A number of modifiers (mod) may immediately follow the p keyletter, to specify variations on an operation's behavior:
18# add dash
19# command format
20# ar [emulation options] [-]{dmpqrstx}[abcDfilMNoOPsSTuvV] [--plugin <name>] [member-name] [count] archive-file file