Skip to content

Commit

Permalink
chore: add bash-completions to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Dec 12, 2024
1 parent 4ab650f commit 8450ff7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "bash-completion"]
path = bash-completion
[submodule "lib/bash-completion"]
path = lib/bash-completion
url = https://github.com/scop/bash-completion
1 change: 1 addition & 0 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include = [
"/README.md",
"/src/**/*.rs",
"/src/**/*.tera",
"/bash-completion/bash_completion",
]
description = "Library for working with usage specs"
homepage = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion lib/src/complete/bash.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub fn complete_bash(opts: &CompleteOptions) -> String {
} else {
format!("_usage_spec_{bin_snake}")
};
let bash_completion = include_str!("../../../bash-completion/bash_completion");
let bash_completion = include_str!("../../bash-completion/bash_completion");
let mut out = vec![format!(
r#"{bash_completion}
Expand Down

0 comments on commit 8450ff7

Please sign in to comment.