pub fn init_global() -> anyhow::Result<()> {
        let base_dir = config_dir()?;
        fs_err::create_dir_all(&base_dir)?;

        let manifest_path = base_dir.join(MANIFEST_FILE_NAME);
        write_if_not_exists(&manifest_path, DEFAULT_GLOBAL_MANIFEST.trim())?;

        Ok(())
    }
/// Create an empty global Aftman manifest if there isn't one already.
Create an empty global Aftman manifest if there isn't one already.
Create an empty global Aftman manifest if there isn ' t one already .
pub fn init_global() -> anyhow::Result<()> {
        let base_dir = config_dir()?;
        fs_err::create_dir_all(&base_dir)?;
        let manifest_path = base_dir.join(MANIFEST_FILE_NAME);
        write_if_not_exists(&manifest_path, DEFAULT_GLOBAL_MANIFEST.trim())?;
        Ok(())
    }
pub fn init_global ( ) -> anyhow :: Result < ( ) > { let base_dir = config_dir ( ) ? ; fs_err :: create_dir_all ( & base_dir ) ? ; let manifest_path = base_dir . join ( MANIFEST_FILE_NAME ) ; write_if_not_exists ( & manifest_path , DEFAULT_GLOBAL_MANIFEST . trim ( ) ) ? ; Ok ( ( ) ) }
Create an empty global Aftman manifest if there isn't one already.
Create an empty global Aftman manifest if there isn ' t one already .