.grammar

Onesimus extension

Print the console grammar (Onesimus).

Synopsis

.grammar [command=<command>]

Words without brackets are required, [ ] marks optional parts, a | b alternatives, ... a repeatable argument and [,...] a comma separated list.

Description

Prints the grammar of every command the console may run (CommandACL): subcommand words, keywords, key=value arguments, value sources, repeatable keys and exclusive groups. In API mode 2 the reply is the JSON object “grammar” (schema 1), otherwise one usage line per command and subcommand.

oconsole loads it at connect for completion and hints. The Bareos Director does not know the command and answers “is an invalid command”; clients then fall back to .help.

Arguments

ArgumentTypeValues / sourceDefaultFlagsDescription
command=resourcecommand namesOnly this command.

Examples

Switch to JSON:

.api 2

The grammar of every permitted command:

.grammar

Only purge:

.grammar command=purge

Only the grammar of list and its subcommands:

.grammar command=list

See also

.help, help, Command reference