diff options
| author | Fuwn <[email protected]> | 2021-06-09 12:37:45 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-06-09 12:37:45 +0000 |
| commit | e9dcdc2d75d9ed5c33472c0958eea7026b2806e8 (patch) | |
| tree | 1196435b523c961155427b65eedd1ede780dc589 | |
| parent | refactor(database): rename database file (diff) | |
| download | whirl-e9dcdc2d75d9ed5c33472c0958eea7026b2806e8.tar.xz whirl-e9dcdc2d75d9ed5c33472c0958eea7026b2806e8.zip | |
feat(cli): create `.whirl` directory and log
| -rw-r--r-- | crates/whirl/src/cli.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/whirl/src/cli.rs b/crates/whirl/src/cli.rs index e0d267f..31060e2 100644 --- a/crates/whirl/src/cli.rs +++ b/crates/whirl/src/cli.rs @@ -41,6 +41,12 @@ impl Cli { trace!("trace"); } + debug!("attempting to create .whirl directory..."); + match std::fs::create_dir(".whirl/") { + Ok(_) => debug!("successfully created .whirl directory"), + Err(e) => debug!("error creating .whirl directory: {}", e), + } + match matches.subcommand() { ("run", Some(s_matches)) => Self::run({ |