Skip to content

Commit

Permalink
Update to clap 4.1.x (#116)
Browse files Browse the repository at this point in the history
Minimum Supported Rust Version (MSRV) is now Rust 1.64.0
  • Loading branch information
intgr authored Jan 30, 2023
1 parent 8cb0ccf commit 8284ad7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "ego"
version = "1.1.6"
edition = "2021"
rust-version = "1.60.0"
rust-version = "1.64.0"

# Metadata
authors = ["Marti Raudsepp <[email protected]>"]
Expand All @@ -19,7 +19,7 @@ categories = ["command-line-utilities"]
users = "0.11.0"
simple-error = "0.2.3"
posix-acl = "1.1.0"
clap = "~4.0.32"
clap = "~4.1.4"
log = { version = "0.4.17", features = ["std"] }
ansi_term = "0.12.1"
shell-words = "1.1.0"
Expand All @@ -28,5 +28,5 @@ shell-words = "1.1.0"
default = []

[dev-dependencies]
clap_complete = "~4.0.7"
clap_complete = "~4.1.1"
snapbox = "0.4.4"
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ For sudo, add the following to `/etc/sudoers` (replace `<myname>` with your own
Changelog
---------

##### UNRELEASED
* Updated to clap 4.1.x (#116)
* Minimum Supported Rust Version (MSRV) is now 1.64.0 (#116)

##### 1.1.6 (2023-01-21)
* Updated to clap 4.0.x (#101) and many other dependency updates
* Fixes for new clippy lints (#95, #93, #111)
* Use `snapbox` instead of hand-coded snapshot testing (#102)
* MSRV was determined to be Rust 1.60.0 (#113)
* Minimum Supported Rust Version (MSRV) was determined to be 1.60.0 (#113)

##### 1.1.5 (2022-01-02)
* Document xhost requirement, improve xhost error reporting (#76)
Expand Down
2 changes: 1 addition & 1 deletion src/snapshots/ego.help
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Options:
--machinectl Use 'machinectl' to change user (default, if available)
--machinectl-bare Use 'machinectl' but skip xdg-desktop-portal setup
-v, --verbose... Verbose output. Use multiple times for more output.
-h, --help Print help information
-h, --help Print help
2 changes: 1 addition & 1 deletion varia/ego-completion.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
_ego() {
local i cur prev opts cmds
local i cur prev opts cmd
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
Expand Down
2 changes: 1 addition & 1 deletion varia/ego-completion.fish
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ complete -c ego -l sudo -d 'Use \'sudo\' to change user'
complete -c ego -l machinectl -d 'Use \'machinectl\' to change user (default, if available)'
complete -c ego -l machinectl-bare -d 'Use \'machinectl\' but skip xdg-desktop-portal setup'
complete -c ego -s v -l verbose -d 'Verbose output. Use multiple times for more output.'
complete -c ego -s h -l help -d 'Print help information'
complete -c ego -s h -l help -d 'Print help'
4 changes: 2 additions & 2 deletions varia/ego-completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ _ego() {
'--machinectl-bare[Use '\''machinectl'\'' but skip xdg-desktop-portal setup]' \
'*-v[Verbose output. Use multiple times for more output.]' \
'*--verbose[Verbose output. Use multiple times for more output.]' \
'-h[Print help information]' \
'--help[Print help information]' \
'-h[Print help]' \
'--help[Print help]' \
'*::command -- Command name and arguments to run (default\: user shell):_cmdambivalent' \
&& ret=0
}
Expand Down

0 comments on commit 8284ad7

Please sign in to comment.