mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[PR #393] [MERGED] Redo 'Fix zsh completion' with clap #459
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/bootandy/dust/pull/393
Author: @eatsu
Created: 4/28/2024
Status: ✅ Merged
Merged: 5/1/2024
Merged by: @bootandy
Base:
master← Head:redo-390📝 Commits (1)
78b48aaRedo 'Fix zsh completion' with clap📊 Changes
7 files changed (+106 additions, -66 deletions)
View changed files
📝
completions/_dust(+21 -36)📝
completions/_dust.ps1(+2 -2)📝
completions/dust.bash(+25 -3)📝
completions/dust.elv(+2 -2)📝
completions/dust.fish(+3 -3)📝
man-page/dust.1(+17 -13)📝
src/cli.rs(+36 -7)📄 Description
Because I'm not familiar with Rust, when I was working on https://github.com/bootandy/dust/pull/390 I didn't realize that the completions were auto-generated via clap. I'm sorry. This redoes it with clap.
This improves not only the completions but also the --help and the man page. Also the --output-format flag will raise an error if the given value is invalid.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.