2017-01-15 22:51:10 +00:00
|
|
|
set -l commands status set-time{,zone} list-timezones set-local-rtc set-ntp
|
2015-08-05 15:45:36 +00:00
|
|
|
|
|
|
|
complete -c timedatectl -f
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" -a status
|
|
|
|
complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" -a set-time
|
|
|
|
complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" -a set-timezone
|
2015-08-05 15:45:36 +00:00
|
|
|
complete -c timedatectl -n "__fish_seen_subcommand_from set-timezone" -a "(timedatectl list-timezones)"
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" -a list-timezones
|
|
|
|
complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" -a set-local-rtc -d "Maintain RTC in local time"
|
2015-08-05 15:45:36 +00:00
|
|
|
complete -c timedatectl -n "__fish_seen_subcommand_from set-local-rtc" -a "true false"
|
2017-10-11 17:17:35 +00:00
|
|
|
complete -c timedatectl -n "__fish_seen_subcommand_from set-local-rtc" -l adjust-system-clock -d 'Synchronize system clock from the RTC'
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -c timedatectl -n "not __fish_seen_subcommand_from $commands" -a set-ntp -d "Use NTP"
|
2015-08-05 15:45:36 +00:00
|
|
|
complete -c timedatectl -n "__fish_seen_subcommand_from set-ntp" -a "true false"
|
2017-10-11 17:17:35 +00:00
|
|
|
complete -c timedatectl -l no-ask-password -d "Don't ask for password"
|
|
|
|
complete -c timedatectl -s H -l host -d 'Execute the operation on a remote host'
|
|
|
|
complete -c timedatectl -s M -l machine -d 'Execute operation on a local container'
|
|
|
|
complete -c timedatectl -s h -l help -d 'Print a short help text and exit'
|
|
|
|
complete -c timedatectl -l version -d 'Print a short version string and exit'
|
|
|
|
complete -c timedatectl -l no-pager -d 'Do not pipe output into a pager'
|