aboutsummaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2021-11-19 23:34:40 +0000
committerGitHub <noreply@github.com>2021-11-19 23:34:40 +0000
commitc89939b5d14e581e1aeaa940d81843192e0abc79 (patch)
tree8a78647fbb23b3fde68339ca2a2c9599315c7094 /Cargo.lock
parentb0da035e9ecabfa13438386a6ce87072b7cc3c98 (diff)
downloadalacritty-c89939b5d14e581e1aeaa940d81843192e0abc79.tar.gz
alacritty-c89939b5d14e581e1aeaa940d81843192e0abc79.zip
Switch to clap-generated completions
The current completions required a lot of domain-specific knowledge about each individual shell and their completion functionality. Much of which is sparsely documented. While clap does not generate perfect completions, since parameters like `-e` are missing completions, it does a reasonable job while requiring no work on writing these completions. Since access to `cli.rs` isn't possible from the `build.rs`, these completions aren't always generated on build. Instead a test verifies that there has been no changes to these completions and provides a simple code sample for re-generating them. This should provide a simple solution with minimal overhead.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index a49e8e51..71a09554 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -21,6 +21,7 @@ dependencies = [
"alacritty_config_derive",
"alacritty_terminal",
"bitflags",
+ "clap",
"cocoa 0.24.0",
"copypasta",
"crossfont",