From 1d917f096572acb74e3e738ecbd8500d2438b9bd Mon Sep 17 00:00:00 2001 From: penguin Date: Fri, 16 Oct 2020 22:49:43 -0500 Subject: [PATCH] the monkey sings and dances for the audience --- src/igloo.rs | 6 ++---- src/igloo_prj.rs | 8 ++++++++ testdir/.igloo/.gdb_history | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 4 deletions(-) create mode 100644 src/igloo_prj.rs diff --git a/src/igloo.rs b/src/igloo.rs index edd5771..c339a1e 100644 --- a/src/igloo.rs +++ b/src/igloo.rs @@ -69,7 +69,7 @@ impl Igloo { cwd: std::env::current_dir().unwrap(), hd: std::env::home_dir().unwrap(), - esfd: match std::env::var("IGLOO_DIR") + esfd: match std::env::var("ESF_DIR") { Ok(v) => { @@ -78,7 +78,7 @@ impl Igloo Err(e) => { // Note: Need to change New to return errors instead of exiting early - println!("Error: $IGLOO_DIR not defined as an environment variable -- {:?}", e); + println!("Error: $ESF_DIR not defined as an environment variable -- {:?}", e); std::process::exit(1); } } @@ -275,8 +275,6 @@ impl Igloo { Err(res_err) } - - } } diff --git a/src/igloo_prj.rs b/src/igloo_prj.rs new file mode 100644 index 0000000..5a898bc --- /dev/null +++ b/src/igloo_prj.rs @@ -0,0 +1,8 @@ +// New Project +// --- Verify location +// --- Populate base folders +// --- create .igloo/.toml +// --- Create default target in ./igloo.toml +// --- Read Default Targets manifest toml +// --- generate projects core manifest toml +// --- Spawn user manifest config diff --git a/testdir/.igloo/.gdb_history b/testdir/.igloo/.gdb_history index 1c403e9..146ecd1 100644 --- a/testdir/.igloo/.gdb_history +++ b/testdir/.igloo/.gdb_history @@ -4,3 +4,40 @@ make load monitor reset q +q +r +q +break main +r +q +r +break main +r +s +s +q +q +break main +r +q +r +break main +r +r +q +q +q +q +q +q +load +q +load +monitor reset +break main +r +q +q +break main +r +q