fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9367d4ff7
master
1# Completions for chronyc 2 3# Global options 4complete -f -c chronyc -s4 -d"Use only IPv4 address for hostname resolution" 5complete -f -c chronyc -s6 -d"Use only IPv6 address for hostname resolution" 6complete -f -c chronyc -s n -d"Disable resolving of IP address to hostname" 7complete -f -c chronyc -s c -d"Print the report in CSV format" 8complete -f -c chronyc -s d -d"Enable print of debugging message" 9complete -f -c chronyc -s m -d"Allow multiple commands to be specified" 10complete -f -c chronyc -s h -d"Specify the host to connect" 11complete -f -c chronyc -s p -d"Specify the UDP port number used by the target to monitor connections" 12complete -f -c chronyc -s f -d"Option for compatibility" 13complete -f -c chronyc -s a -d"Option for compatibility" 14complete -f -c chronyc -s v -d"Show version number" 15 16# Commands 17## System clock 18complete -f -c chronyc -n __fish_use_subcommand -a tracking -d"Show system time info" 19complete -f -c chronyc -n __fish_use_subcommand -a makestep -d"Correct the clock by stepping" 20complete -f -c chronyc -n __fish_use_subcommand -a maxupdateskew -d"Modify max valid skew to update frequency" 21complete -f -c chronyc -n __fish_use_subcommand -a waitsync -d"Wait until synced in specified limits" 22 23## Time sources 24complete -f -c chronyc -n __fish_use_subcommand -a sources -d"Show info about current sources" 25complete -x -c chronyc -n"__fish_seen_subcommand_from sources" -s v -d"Be verbose" 26complete -f -c chronyc -n __fish_use_subcommand -a sourcestats -d"Show statistics about collected measurements" 27complete -x -c chronyc -n"__fish_seen_subcommand_from sourcestats" -s v -d"Be verbose" 28complete -f -c chronyc -n __fish_use_subcommand -a reselect -d"Force reselecting sync source" 29complete -f -c chronyc -n __fish_use_subcommand -a reselectdist -d"Modify reselection distance" 30 31## NTP sources 32complete -f -c chronyc -n __fish_use_subcommand -a activity -d"Check how many NTP sources are online/offline" 33complete -f -c chronyc -n __fish_use_subcommand -a ntpdata -d"Show info about last valid measurement" 34complete -f -c chronyc -n __fish_use_subcommand -a add 35complete -f -c chronyc -n"__fish_seen_subcommand_from add" -a peer -d"Add new NTP peer" 36complete -f -c chronyc -n"__fish_seen_subcommand_from add" -a server -d"Add new NTP server" 37complete -f -c chronyc -n __fish_use_subcommand -a delete -d"Remove server/peer" 38complete -f -c chronyc -n __fish_use_subcommand -a burst -d"Start rapid set of measurements" 39complete -f -c chronyc -n __fish_use_subcommand -a maxdelay -d"Modify max valid sample delay" 40complete -f -c chronyc -n __fish_use_subcommand -a maxdelaydevratio -d"Modify max valid delay/deviation ratio" 41complete -f -c chronyc -n __fish_use_subcommand -a maxdelayratio -d"Modify max valid delay/min ratio" 42complete -f -c chronyc -n __fish_use_subcommand -a maxpoll -d"Modify max polling interval" 43complete -f -c chronyc -n __fish_use_subcommand -a minpoll -d"Modify min polling interval" 44complete -f -c chronyc -n __fish_use_subcommand -a minstratum -d"Modify min stratum" 45complete -f -c chronyc -n __fish_use_subcommand -a offline -d"Set sources in subnet to offline status" 46complete -f -c chronyc -n __fish_use_subcommand -a online -d"Set sources in subnet to online status" 47complete -f -c chronyc -n __fish_use_subcommand -a onoffline -d"Set all sources to online/offline status according to network config" 48complete -f -c chronyc -n __fish_use_subcommand -a polltarget -d"Modify poll target" 49complete -f -c chronyc -n __fish_use_subcommand -a refresh -d"Refresh IP address" 50 51## Manual time input 52complete -f -c chronyc -n __fish_use_subcommand -a manual 53complete -f -c chronyc -n"__fish_seen_subcommand_from manual" -a on -d"Enable settime command" 54complete -f -c chronyc -n"__fish_seen_subcommand_from manual" -a off -d"Disable settime command" 55complete -f -c chronyc -n"__fish_seen_subcommand_from manual" -a delete -d"Delete previous settime entry" 56complete -f -c chronyc -n"__fish_seen_subcommand_from manual" -a list -d"Show previous settime entries" 57complete -f -c chronyc -n"__fish_seen_subcommand_from manual" -a reset -d"Reset settime command" 58complete -f -c chronyc -n __fish_use_subcommand -a settime -d"Set daemon time" 59 60## NTP access 61complete -f -c chronyc -n __fish_use_subcommand -a accheck -d"Check whether address is allowed" 62complete -f -c chronyc -n __fish_use_subcommand -a clients -d"Report on clients that have accessed the server" 63complete -f -c chronyc -n __fish_use_subcommand -a serverstats -d"Show statistics of the server" 64complete -f -c chronyc -n __fish_use_subcommand -a allow -d"Allow access to subnet as a default" 65complete -f -c chronyc -n"__fish_seen_subcommand_from allow" -a all -d"Allow access to subnet and all children" 66complete -f -c chronyc -n __fish_use_subcommand -a deny -d"Deny access to subnet as a default" 67complete -f -c chronyc -n"__fish_seen_subcommand_from deny" -a all -d"Deny access to subnet and all children" 68complete -f -c chronyc -n __fish_use_subcommand -a local -d"Serve time even when not synced" 69complete -f -c chronyc -n"__fish_seen_subcommand_from local" -a off -d"Don't serve time when not synced" 70complete -f -c chronyc -n __fish_use_subcommand -a smoothing -d"Show current time smoothing state" 71complete -f -c chronyc -n __fish_use_subcommand -a smoothtime 72complete -f -c chronyc -n"__fish_seen_subcommand_from smoothtime" -a activate -d"Activate time smoothing" 73complete -f -c chronyc -n"__fish_seen_subcommand_from smoothtime" -a reset -d"Reset time smoothing" 74 75## Monitoring access 76complete -f -c chronyc -n __fish_use_subcommand -a cmdaccheck -d"Check whether address is allowed" 77complete -f -c chronyc -n __fish_use_subcommand -a cmdallow -d"Allow access to subnet as a default" 78complete -f -c chronyc -n"__fish_seen_subcommand_from cmdallow" -a all -d"Allow access to subnet and all children" 79complete -f -c chronyc -n __fish_use_subcommand -a cmddeny -d"Deny access to subnet as a default" 80complete -f -c chronyc -n"__fish_seen_subcommand_from cmddeny" -a all -d"Deny access to subnet and all children" 81 82## RTC 83complete -f -c chronyc -n __fish_use_subcommand -a rtcdata -d"Print current RTC performance parameters" 84complete -f -c chronyc -n __fish_use_subcommand -a trimrtc -d"Correct RTC relative to system clock" 85complete -f -c chronyc -n __fish_use_subcommand -a writertc -d"Save RTC performance parameters to file" 86 87## Other daemon commands 88complete -f -c chronyc -n __fish_use_subcommand -a cyclelogs -d"Close and reopen log files" 89complete -f -c chronyc -n __fish_use_subcommand -a dump -d"Dump all measurements to save files" 90complete -f -c chronyc -n __fish_use_subcommand -a rekey -d"Reread keys from key file" 91complete -f -c chronyc -n __fish_use_subcommand -a shutdown -d"Stop daemon" 92 93## Client commands 94complete -f -c chronyc -n __fish_use_subcommand -a dns -d"Configure how hostname and IP address are resolved" 95complete -f -c chronyc -n __fish_use_subcommand -a timeout -d"Set initial response timeout" 96complete -f -c chronyc -n __fish_use_subcommand -a retries -d"Set max number of retries" 97complete -f -c chronyc -n __fish_use_subcommand -a keygen -d"Generate key for key file" 98complete -f -c chronyc -n __fish_use_subcommand -a"exit quit" -d"Leave the program" 99complete -f -c chronyc -n __fish_use_subcommand -a help -d"Show help message"