about summary refs log tree commit diff
path: root/Completion/BSD/Command/_freebsd-update
blob: af37641e475fc5e9b04e58433190144f5b4359d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#compdef freebsd-update

local flags
flags=(
  '(cron)fetch[fetch a compressed snapshot or update existing one]'
  '(fetch)cron[sleep rand(3600) seconds, and then fetch updates]'
  '(install rollback)upgrade[fetch files necessary for upgrading to a new release]'
  'updatesready[check if there are fetched updates ready to install]'
  '(upgrade rollback)install[install the most recently fetched updates or upgrade]'
  '(upgrade install)rollback[uninstall the most recently installed updates]'
  'IDS[compare the system against an index of "known good" files]'
  'showconfig[show configuration options after parsing conffile and command line options]'
)

_arguments \
  '-b[operate on a system mounted at basedir]:basedir:_files -/' \
  '-d[store working files in workdir]:workdir:_files -/' \
  '-f[read configuration options from conffile]:conf file:_files' \
  '-F[force freebsd-update fetch to proceed where it normally would not]' \
  '-j[operate on specified jail]: :_jails' \
  '-k[trust an RSA key with SHA256 of KEY]:RSA key' \
  '-r[specify the new release]:new release' \
  '-s[fetch files from the specified server or server pool]:server:_hosts' \
  '-t[mail output of cron command, if any, to address]:address' \
  '--currently-running[assume specified release as current]:release' \
  '*:command:_values -S " " -w "commands" $flags[@]'