Skip to content

Commit

Permalink
Merge pull request #8 from k3ii/revert-7-creates
Browse files Browse the repository at this point in the history
Revert "creates"
  • Loading branch information
k3ii authored Sep 1, 2024
2 parents c7e5eee + 7555fe3 commit db05d17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,12 @@ pub fn make_dir(depth: u8, name_length: usize, name: bool, pet: bool, tmp: bool)
fs::create_dir_all(&path).expect("Failed to create directory");

println!("{}", path.display());

let name = get_random_name().unwrap_or_else(|| String::from("default_name"));
let pet = get_random_pet()
.unwrap_or_else(|| "default_pet")
.to_string();

println!("Name: {}", name);
println!("Pet: {}", pet);
}
7 changes: 1 addition & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use clap::{command, Arg, ArgGroup};
use clap::{command, Arg};
use qdir::make_dir;

fn main() {
Expand Down Expand Up @@ -41,11 +41,6 @@ fn main() {
.action(clap::ArgAction::SetTrue)
.help("Use the system's temporary directory"),
)
.group(
ArgGroup::new("name_or_pet_length")
.args(&["name", "pet", "length"])
.required(false),
)
.get_matches();

let depth = matches
Expand Down

0 comments on commit db05d17

Please sign in to comment.