diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-08 14:58:23 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-08 14:58:23 -0500 |
commit | 98617b70d8e85053c1ca56f26c58d49d880a0ce1 (patch) | |
tree | ce3f29ba8239715a368ae78027df47e26c95e571 /src/env.rs | |
parent | 82b885d8f12fc9ccb02a7e77799ced063d2df29e (diff) | |
download | nbsh-98617b70d8e85053c1ca56f26c58d49d880a0ce1.tar.gz nbsh-98617b70d8e85053c1ca56f26c58d49d880a0ce1.zip |
remove pipeline from the environment
it was only really here for convenience, but it doesn't really make a
lot of sense
Diffstat (limited to 'src/env.rs')
-rw-r--r-- | src/env.rs | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -9,7 +9,6 @@ pub enum Env { #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] pub struct V0 { - pipeline: Option<String>, idx: usize, #[serde( serialize_with = "serialize_status", @@ -23,7 +22,6 @@ pub struct V0 { impl Env { pub fn new() -> Self { Self::V0(V0 { - pipeline: None, idx: 0, latest_status: std::process::ExitStatus::from_raw(0), pwd: std::env::current_dir().unwrap(), @@ -31,20 +29,6 @@ impl Env { }) } - pub fn pipeline(&self) -> Option<&str> { - match self { - Self::V0(env) => env.pipeline.as_deref(), - } - } - - pub fn set_pipeline(&mut self, pipeline: String) { - match self { - Self::V0(env) => { - env.pipeline = Some(pipeline); - } - } - } - pub fn idx(&self) -> usize { match self { Self::V0(env) => env.idx, |