-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
5,832 additions
and
5,822 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
#[derive(Debug, Clone, PartialEq, Eq)] | ||
pub struct Config { | ||
pub execution_config: maptos_execution_util::config::Config, | ||
pub execution_config: maptos_execution_util::config::Config, | ||
} | ||
|
||
impl Config { | ||
pub fn new(execution_config: maptos_execution_util::config::Config) -> Self { | ||
Self { execution_config } | ||
} | ||
pub fn new(execution_config: maptos_execution_util::config::Config) -> Self { | ||
Self { execution_config } | ||
} | ||
|
||
pub fn try_from_env() -> Result<Self, anyhow::Error> { | ||
let execution_config = maptos_execution_util::config::Config::try_from_env()?; | ||
pub fn try_from_env() -> Result<Self, anyhow::Error> { | ||
let execution_config = maptos_execution_util::config::Config::try_from_env()?; | ||
|
||
Ok(Self { execution_config }) | ||
} | ||
Ok(Self { execution_config }) | ||
} | ||
|
||
pub fn write_to_env(&self) -> Result<(), anyhow::Error> { | ||
self.execution_config.write_to_env()?; | ||
Ok(()) | ||
} | ||
pub fn write_to_env(&self) -> Result<(), anyhow::Error> { | ||
self.execution_config.write_to_env()?; | ||
Ok(()) | ||
} | ||
|
||
pub fn write_bash_export_string(&self) -> Result<String, anyhow::Error> { | ||
Ok(format!("{}", self.execution_config.write_bash_export_string()?)) | ||
} | ||
pub fn write_bash_export_string(&self) -> Result<String, anyhow::Error> { | ||
Ok(format!("{}", self.execution_config.write_bash_export_string()?)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.