diff options
author | Christian Duerr <contact@christianduerr.com> | 2021-11-19 23:34:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 23:34:40 +0000 |
commit | c89939b5d14e581e1aeaa940d81843192e0abc79 (patch) | |
tree | 8a78647fbb23b3fde68339ca2a2c9599315c7094 /Cargo.lock | |
parent | b0da035e9ecabfa13438386a6ce87072b7cc3c98 (diff) | |
download | alacritty-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.lock | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -21,6 +21,7 @@ dependencies = [ "alacritty_config_derive", "alacritty_terminal", "bitflags", + "clap", "cocoa 0.24.0", "copypasta", "crossfont", |