Skip to content

Commit

Permalink
fix: completion generate the wrong script
Browse files Browse the repository at this point in the history
  • Loading branch information
kingwingfly committed Feb 8, 2024
1 parent dc097d1 commit 448ab44
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Create a report to help us improve
title: "[Bug]"
labels: ''
assignees: ''

---

**Describe the bug**
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: "[New Feature]"
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
3 changes: 1 addition & 2 deletions fav_utils/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,7 @@ impl Cli {
Commands::Modify { id, saved, clarity } => modify(id, saved, clarity),
Commands::Completion { shell } => {
let mut cmd = Cli::command();
let name = cmd.get_name().to_string();
clap_complete::generate(shell, &mut cmd, name, &mut std::io::stdout());
clap_complete::generate(shell, &mut cmd, "fav", &mut std::io::stdout());
}
}
}
Expand Down

0 comments on commit 448ab44

Please sign in to comment.