mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Add migrate to alacritty(1)
This commit is contained in:
parent
48b1dc8101
commit
0b41841305
4 changed files with 36 additions and 8 deletions
|
@ -20,7 +20,7 @@ use crate::logging::LOG_TARGET_IPC_CONFIG;
|
|||
#[derive(Parser, Default, Debug)]
|
||||
#[clap(author, about, version = env!("VERSION"))]
|
||||
pub struct Options {
|
||||
/// Print all events to stdout.
|
||||
/// Print all events to STDOUT.
|
||||
#[clap(long)]
|
||||
pub print_events: bool,
|
||||
|
||||
|
@ -262,7 +262,7 @@ pub struct MigrateOptions {
|
|||
#[clap(short, long, value_hint = ValueHint::FilePath)]
|
||||
pub config_file: Option<PathBuf>,
|
||||
|
||||
/// Only output TOML config to stdout.
|
||||
/// Only output TOML config to STDOUT.
|
||||
#[clap(short, long)]
|
||||
pub dry_run: bool,
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ _alacritty() {
|
|||
'--class=[Defines window class/app_id on X11/Wayland \[default\: Alacritty\]]:general> | <general>,<instance: ' \
|
||||
'*-o+[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \
|
||||
'*--option=[Override configuration file options \[example\: '\''cursor.style="Beam"'\''\]]:OPTION: ' \
|
||||
'--print-events[Print all events to stdout]' \
|
||||
'--print-events[Print all events to STDOUT]' \
|
||||
'--ref-test[Generates ref test]' \
|
||||
'(-v)*-q[Reduces the level of verbosity (the min level is -qq)]' \
|
||||
'(-q)*-v[Increases the level of verbosity (the max level is -vvv)]' \
|
||||
|
@ -122,8 +122,8 @@ esac
|
|||
_arguments "${_arguments_options[@]}" \
|
||||
'-c+[Path to the configuration file]:CONFIG_FILE:_files' \
|
||||
'--config-file=[Path to the configuration file]:CONFIG_FILE:_files' \
|
||||
'-d[Only output TOML config to stdout]' \
|
||||
'--dry-run[Only output TOML config to stdout]' \
|
||||
'-d[Only output TOML config to STDOUT]' \
|
||||
'--dry-run[Only output TOML config to STDOUT]' \
|
||||
'-i[Do not recurse over imports]' \
|
||||
'--skip-imports[Do not recurse over imports]' \
|
||||
'--skip-renames[Do not move renamed fields to their new location]' \
|
||||
|
|
|
@ -6,7 +6,7 @@ complete -c alacritty -n "__fish_use_subcommand" -s e -l command -d 'Command and
|
|||
complete -c alacritty -n "__fish_use_subcommand" -s T -l title -d 'Defines the window title [default: Alacritty]' -r
|
||||
complete -c alacritty -n "__fish_use_subcommand" -l class -d 'Defines window class/app_id on X11/Wayland [default: Alacritty]' -r
|
||||
complete -c alacritty -n "__fish_use_subcommand" -s o -l option -d 'Override configuration file options [example: \'cursor.style="Beam"\']' -r
|
||||
complete -c alacritty -n "__fish_use_subcommand" -l print-events -d 'Print all events to stdout'
|
||||
complete -c alacritty -n "__fish_use_subcommand" -l print-events -d 'Print all events to STDOUT'
|
||||
complete -c alacritty -n "__fish_use_subcommand" -l ref-test -d 'Generates ref test'
|
||||
complete -c alacritty -n "__fish_use_subcommand" -s q -d 'Reduces the level of verbosity (the min level is -qq)'
|
||||
complete -c alacritty -n "__fish_use_subcommand" -s v -d 'Increases the level of verbosity (the max level is -vvv)'
|
||||
|
@ -35,7 +35,7 @@ complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subco
|
|||
complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "config" -d 'Update the Alacritty configuration'
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from msg; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from create-window; and not __fish_seen_subcommand_from config; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s c -l config-file -d 'Path to the configuration file' -r -F
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s d -l dry-run -d 'Only output TOML config to stdout'
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s d -l dry-run -d 'Only output TOML config to STDOUT'
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s i -l skip-imports -d 'Do not recurse over imports'
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from migrate" -l skip-renames -d 'Do not move renamed fields to their new location'
|
||||
complete -c alacritty -n "__fish_seen_subcommand_from migrate" -s s -l silent -d 'Do not output to STDOUT'
|
||||
|
|
|
@ -23,7 +23,7 @@ set of features with high performance.
|
|||
|
||||
*--print-events*
|
||||
|
||||
Print all events to stdout.
|
||||
Print all events to STDOUT.
|
||||
|
||||
*-q*
|
||||
|
||||
|
@ -99,6 +99,34 @@ set of features with high performance.
|
|||
|
||||
Send IPC socket messages (see *alacritty-msg*(1)).
|
||||
|
||||
*migrate*
|
||||
|
||||
Migrate the configuration file.
|
||||
|
||||
*-c, --config-file* _<CONFIG_FILE>_
|
||||
|
||||
Path to the configuration file.
|
||||
|
||||
*-d, --dry-run*
|
||||
|
||||
Only output TOML config to STDOUT.
|
||||
|
||||
*-i, --skip-imports*
|
||||
|
||||
Do not recurse over imports.
|
||||
|
||||
*--skip-renames*
|
||||
|
||||
Do not move renamed fields to their new location.
|
||||
|
||||
*-s, --silent*
|
||||
|
||||
Do not output to STDOUT.
|
||||
|
||||
*-h, --help*
|
||||
|
||||
Print help information.
|
||||
|
||||
# SEE ALSO
|
||||
|
||||
*alacritty-msg*(1), *alacritty*(5), *alacritty-bindings*(5)
|
||||
|
|
Loading…
Reference in a new issue