Skip to content

Commit

Permalink
fix: create TCLI_HOME if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangreen-dev committed Apr 9, 2024
1 parent ae6de7f commit 135048c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ pub static TCLI_HOME: Lazy<PathBuf> = Lazy::new(|| {

#[tokio::main]
async fn main() -> Result<(), Error> {
if !TCLI_HOME.is_dir() {
std::fs::create_dir_all(TCLI_HOME.as_path())?;
}

match Args::parse().commands {
Commands::Init {
command,
Expand Down

0 comments on commit 135048c

Please sign in to comment.