gornilo 0.1.0

Odin project manager
Documentation
1
2
3
4
5
6
7
8
9
use std::{env, fs};

#[inline]
pub fn is_in_project_dir() -> bool {
    let current_dir = env::current_dir().expect("Failed to get the current directory path");

    fs::exists(current_dir.join("gornilo.toml"))
        .expect("Failed to check if the command was called from the project root")
}