Trait ya_runtime_sdk::env::Env

source ·
pub trait Env<C: CommandCli> {
    fn runtime_name(&self) -> Option<String> { ... }
    fn data_directory(&self, runtime_name: &str) -> Result<PathBuf> { ... }
    fn args(&self) -> Box<dyn Iterator<Item = String>> { ... }
    fn cli(&mut self, project_name: &str, project_version: &str) -> Result<C> { ... }
}
Expand description

Runtime environment configuration

Provided Methods§

Runtime name. Return None for project name

Directory to store the configuration, caches and state at

Command line arguments

Parse command line arguments

Implementors§