fish-shell/share/completions/lpstat.fish
Johannes Altmanninger 9c327b19a6 Fix extra or missing newlines at end of file in our fish scripts
New fish_indent does that too, so this will make any future reformatting
diffs smaller.

Done using either of:

	perl -pi -e 'undef $/; s/\n*$/\n/' share/**.fish
	kak -n -f '<a-/>\n*<ret>d' share/**.fish
2020-08-09 23:53:46 +02:00

16 lines
1.3 KiB
Fish

__fish_complete_lpr lpstat
complete -c lpstat -s H -d 'Show the server hostname and port'
complete -c lpstat -s R -d 'Shows the ranking of print jobs'
complete -c lpstat -s W -d 'Specifies which jobs to show' -xa 'completed not-completed'
complete -c lpstat -s a -d 'Shows the accepting state of selected printer queues' -xa '(__fish_print_lpr_printers)'
complete -c lpstat -s c -x -d 'Shows the printer classes and the printers that belong to them. If no classes are specified then all classes are listed'
complete -c lpstat -s d -d 'Shows the current default destination'
complete -c lpstat -s l -d 'Shows a long listing of printers, classes, or jobs'
complete -c lpstat -s o -d 'Shows the jobs queue on the specified destinations' -xa '(__fish_print_lpr_printers)'
complete -c lpstat -s p -d 'Shows the printers and whether or not they are enabled for printing' -xa '(__fish_print_lpr_printers)'
complete -c lpstat -s r -d 'Shows whether the CUPS server is running'
complete -c lpstat -s s -d 'Shows a status summary, including the default destination'
complete -c lpstat -s t -d 'Shows all status information'
complete -c lpstat -s u -d 'Shows a list of print jobs queued by the specified users' -xa '(__fish_complete_users)'
complete -c lpstat -s v -d 'Shows the printers and what device they are attached to' -xa '(__fish_print_lpr_printers)'