Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Verified Commit 789db235 authored by Ayush Singh's avatar Ayush Singh
Browse files

xtask: Fix bugs


- Fix manpage name
- Clean manpage dir to remove old artifacts

Signed-off-by: Ayush Singh's avatarAyush Singh <ayush@beagleboard.org>
parent b16c24a8
Branches
Tags
1 merge request!39cli: A lot of major improvements
Pipeline #23497 passed with stages
in 5 minutes and 46 seconds
......@@ -42,9 +42,10 @@ package-cli-windows-zip-%: build-cli-% shell-completion-powershell
manpage:
$(info "Generate CLI Manpages")
rm -rf target/man
mkdir -p target/man
cargo xtask cli-man target/man
gzip target/man/* -f
gzip target/man/*
shell-completion-%:
$(info "Generate CLI Shell Completion")
......
......@@ -34,7 +34,13 @@ fn main() {
match opts.command {
Commands::CliMan { out_dir } => {
let cmd = bb_imager_cli::Opt::command();
let cli_manifest_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
.parent()
.unwrap()
.join("cli/Cargo.toml");
let manifest = cargo_toml::Manifest::from_path(cli_manifest_path).unwrap();
let cmd = bb_imager_cli::Opt::command().display_name(manifest.package().name());
clap_mangen::generate_to(cmd, out_dir).unwrap();
}
Commands::CliShellComplete { shell, out_dir } => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment