Skip to content

Commit

Permalink
feat!: <X>-completions.nu instead of <X>.nu
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Oct 28, 2023
1 parent fd38364 commit 6d776b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gen/nu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ use crate::{gen::util::Output, parse::CommandInfo};
pub fn generate(cmd: &CommandInfo, out_dir: &Path) -> Result<()> {
let mut res = Output::new(String::from(" "));
generate_cmd(&cmd.name, cmd, &mut res, true);
fs::write(out_dir.join(format!("{}.nu", cmd.name)), res.text())?;
fs::write(
out_dir.join(format!("{}-completions.nu", cmd.name)),
res.text(),
)?;
Ok(())
}

Expand Down
File renamed without changes.

0 comments on commit 6d776b3

Please sign in to comment.