unstable
Penguin 3 years ago
parent cbe8f457db
commit 52db698d05

@ -70,3 +70,7 @@ s
s s
s s
q q
b igloo::main
r
n
q

@ -63,6 +63,7 @@ pub fn add_target(inst: &Igloo, prj_name: &str, target: &str) -> IglooErrType
res_err = ActionCalledOutsideProject; res_err = ActionCalledOutsideProject;
break; break;
} }
}break;} }break;}

@ -44,11 +44,15 @@ impl IglooPrj
/// this tests if the requested directory is an igloo project /// this tests if the requested directory is an igloo project
pub fn is_igloo_prj(path: &std::path::PathBuf) -> bool pub fn is_igloo_prj(path: &std::path::PathBuf) -> bool
{ {
let mut ret: bool = false; let mut ret: bool = true;
println!("{}", path.join(".igloo").display()); if !path.join(".igloo").exists()
if path.join(".igloo").exists()
{ {
ret = true; return false;
}
if !path.join(".igloo").join("project.toml").exists()
{
return false;
} }
return ret; return ret;
} }
@ -219,6 +223,12 @@ impl IglooPrj
} }
} }
/// Generates project config file -- project.toml
pub fn gen_project_config(&self) -> IglooErrType
{
IglooErrType::ErrUnknown
}
/// Generates the target directories for all targets /// Generates the target directories for all targets
pub fn gen_targets(&self) -> IglooErrType pub fn gen_targets(&self) -> IglooErrType
{ {

Loading…
Cancel
Save