Skip to content

Commit

Permalink
fix: hotfix for eza
Browse files Browse the repository at this point in the history
Not pretty but who is? :s

Signed-off-by: Christina Sørensen <[email protected]>
  • Loading branch information
cafkafk committed Nov 12, 2023
1 parent e362114 commit 4cfc3a1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ fn main() -> std::io::Result<()> {
// If --stdin set
if stdin > &0 {
parse = crate::parser::parse(std::io::stdin().lock());
} else if let Some(ref run) = config.gen_binary {
parse = match crate::utils::get_help(run, &[]) {
Ok(parse) => crate::parser::parse(BufReader::new(parse.as_slice())),
Err(e) => panic!("{:?}, {run:#?}", e),
}
// If we don't generate at all
} else {
}
// else if let Some(ref run) = config.gen_binary {
// parse = match crate::utils::get_help(run, &[]) {
// Ok(parse) => crate::parser::parse(BufReader::new(parse.as_slice())),
// Err(e) => panic!("{:?}, {run:#?}", e),
// }
// // If we don't generate at all
// }
else {
// HACK: We fake being a parsed help... obviously bad.
let mut res = vec![];
for (k, _) in config.commands.as_ref().unwrap().iter() {
Expand Down Expand Up @@ -96,8 +98,6 @@ fn main() -> std::io::Result<()> {
})
.collect();

println!("{output_strings:#?}");

let dump_dir = config.dump_dir.unwrap();

crate::fs::dump_dir(&dump_dir, output_strings);
Expand Down

0 comments on commit 4cfc3a1

Please sign in to comment.