aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-11-23 22:45:45 +0400
committerKirill Chibisov <contact@kchibisov.com>2023-11-24 03:01:10 +0400
commit0b4184130597079c02a6a99e0da77dce9e82a914 (patch)
treecc67fad5507ae737718a3392fc3f40bc870a5752
parent48b1dc8101935c4383e54156c74659d1cd11f96c (diff)
downloadalacritty-0b4184130597079c02a6a99e0da77dce9e82a914.tar.gz
alacritty-0b4184130597079c02a6a99e0da77dce9e82a914.zip
Add migrate to alacritty(1)
-rw-r--r--alacritty/src/cli.rs4
-rw-r--r--extra/completions/_alacritty6
-rw-r--r--extra/completions/alacritty.fish4
-rw-r--r--extra/man/alacritty.1.scd30
4 files changed, 36 insertions, 8 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs
index 67446fab..fee2680f 100644
--- a/alacritty/src/cli.rs
+++ b/alacritty/src/cli.rs
@@ -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,
diff --git a/extra/completions/_alacritty b/extra/completions/_alacritty
index a1739c4e..a510fb15 100644
--- a/extra/completions/_alacritty
+++ b/extra/completions/_alacritty
@@ -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]' \
diff --git a/extra/completions/alacritty.fish b/extra/completions/alacritty.fish
index 243f144a..72609f70 100644
--- a/extra/completions/alacritty.fish
+++ b/extra/completions/alacritty.fish
@@ -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'
diff --git a/extra/man/alacritty.1.scd b/extra/man/alacritty.1.scd
index 3b337ae4..b82ba08e 100644
--- a/extra/man/alacritty.1.scd
+++ b/extra/man/alacritty.1.scd
@@ -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)