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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# First cut of fdb bash_completions
# Alastair McKinstry, mckinstry@debian.org, 2022-02-01
#fdb fdb-dump-index fdb-hide fdb-lock fdb-patch fdb-reconsolidate-toc fdb-server fdb-unlock fdb-wipe
#fdb-copy fdb-dump-toc fdb-info fdb-monitor fdb-purge fdb-root fdb-stats fdb-where fdb-write
#fdb-dump fdb-hammer fdb-list fdb-overlay fdb-read fdb-schema fdb-status fdb-which grib2fdb5
complete -W "help home info list purge roots schema spaces stats version where wipe" -f fdb
complete fdb-dump -W "--raw --ignore-errors --simple --all --config" -f fdb-dump
complete fdb-read -W "--extract --raw --statistics --config" -f fdb-read
complete fdb-copy -W "--verbose --raw --sort --to --from --config" -f fdb-copy
complete fdb-wipe -W "--minimum-keys --raw --ignore-errors --doit --ignore-no-data --porcelain --unsafe-wipe-all all --config" -f fdb-wipe
# fdb-dump
# Usage: fdb-dump [options] [request1] [request2] ...
#Examples:
# fdb-dump class=rd,expver=xywz,stream=oper,date=20190603,time=00
#
#Options are:
#
# --raw (Don't apply (contextual) expansion and checking on requests.)
# --ignore-errors (Ignore errors (report them as warnings) and continue processing wherever possible)
# --simple (Dump one (simpler) record per line)
# --all (Visit all FDB databases)
# --config=string (FDB configuration filename)
# fdb-read
#Usage: fdb-read request.mars target.grib
# fdb-read --raw request.mars target.grib
# fdb-read --extract source.grib target.grib
##
#Options are:
# --extract (Extract request from a GRIB file)
# --raw (Uses the raw request, without expansion)
# --statistics (Report timing statistics)
# --config=string (FDB configuration filename)
#Usage: fdb-copy --from <config> --to <config> <request1>
#Options are:
# --verbose (Print verbose output)
# --raw (Process the MARS request without expansion)
# --sort (Sort fields according to location on input storage)
# --to=path (Configuration of FDB to write to)
# --from=path (Configuration of FDB to read from)
# --config=string (FDB configuration filename)
# fdb-wipe class=rd,expver=xywz,stream=oper,date=20190603,time=00
#Options are:
# --minimum-keys=string,string,... (Use these keywords as a minimum set which *must* be specified)
# --raw (Don't apply (contextual) expansion and checking on requests.)
# --ignore-errors (Ignore errors (report them as warnings) and continue processing wherever possible)
# --doit (Delete the files (data and indexes))
# --ignore-no-data (No data available to delete is not an error)
# --porcelain (List only the deleted files)
# --unsafe-wipe-all (Wipe all (unowned) contents of an unclean database)
# --all (Visit all FDB databases)
# --config=string (FDB configuration filename)
|