fork/fish-shell

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

Shun SakaiAdd completions for some missing GLib's tools (#7300)244feee69

master
2.2 KiB33 linesraw
1# Completions for gdbus (a part of GLib)
2
3# Commands
4complete -f -c gdbus -n __fish_use_subcommand -a introspect -d "Introspect a remote object"
5complete -f -c gdbus -n __fish_use_subcommand -a monitor -d "Monitor a remote object"
6complete -f -c gdbus -n __fish_use_subcommand -a call -d "Invoke a method on a remote object"
7complete -f -c gdbus -n __fish_use_subcommand -a emit -d "Emit a signal"
8complete -f -c gdbus -n __fish_use_subcommand -a wait -d "Wait for a bus name to appear"
9complete -f -c gdbus -n __fish_use_subcommand -a help -d "Prints help"
10
11# Common options
12complete -f -c gdbus -n "__fish_seen_subcommand_from introspect monitor call emit wait" -s y -l system -d "Connect to the system bus"
13complete -f -c gdbus -n "__fish_seen_subcommand_from introspect monitor call emit wait" -s e -l session -d "Connect to the session bus"
14complete -x -c gdbus -n "__fish_seen_subcommand_from introspect monitor call emit wait" -s a -l address -d "Connect to given D-Bus address"
15complete -x -c gdbus -n "__fish_seen_subcommand_from introspect monitor call emit" -s d -l dest -d "Destination name"
16complete -x -c gdbus -n "__fish_seen_subcommand_from introspect monitor call emit" -s o -l object-path -d "Object path"
17complete -f -c gdbus -n "__fish_seen_subcommand_from introspect monitor call emit wait" -s h -l help -d "Prints help"
18
19# Options of introspect command
20complete -f -c gdbus -n "__fish_seen_subcommand_from introspect" -s x -l xml -d "Print XML"
21complete -f -c gdbus -n "__fish_seen_subcommand_from introspect" -s r -l recurse -d "Introspect children"
22complete -f -c gdbus -n "__fish_seen_subcommand_from introspect" -s p -l only-properties -d "Only print properties"
23
24# Options of call command
25complete -x -c gdbus -n "__fish_seen_subcommand_from call" -s m -l method -d "Method and interface name"
26complete -x -c gdbus -n "__fish_seen_subcommand_from call" -s t -l timeout -d "Timeout in seconds"
27
28# Options of emit command
29complete -x -c gdbus -n "__fish_seen_subcommand_from emit" -s s -l signal -d "Signal and interface name"
30
31# Options of wait command
32complete -x -c gdbus -n "__fish_seen_subcommand_from wait" -s a -l activate -d "Service to activate"
33complete -x -c gdbus -n "__fish_seen_subcommand_from wait" -s t -l timeout -d "Timeout to wait"