7fb565c
Add code generator for restic commands and flags
Click to expand commit body
Add cmd/gen-restic-cmds, a tool that parses restic's generated man
pages and produces a Go source file mapping every subcommand to its
accepted flags. Types and generated output live in internal/restic.
Amolith
created
95a69c0
Reorganise examples directory with systemd integration
ac0adc1
Generate usable preset names from config fragments
Click to expand commit body
Rework presetsFrom() to combine prefix@ and @suffix sections into
invocable preset names rather than returning raw TOML section keys.
Expose Prefixes() and Suffixes() for shell completion. Completions now
list prefixes first and complete suffixes after typing prefix@<tab>.
Validate preset names on the non-interactive CLI path so unknown
presets fail fast with a clear error listing available options.
Map the 'repository' config key to restic's actual --repo flag.
Quote every argument in dry-run output so arg boundaries are
unambiguous when values contain spaces.
Amolith
created
f441396
Add preset selector and command input forms