Crates.io | sfrx |
lib.rs | sfrx |
version | 0.1.3 |
source | src |
created_at | 2023-04-07 15:45:54.189704 |
updated_at | 2023-04-08 18:51:05.322281 |
description | Rust lib to wrap sfdx-cli commands |
homepage | |
repository | https://github.com/michael-ploetz/sfrx |
max_upload_size | |
id | 832985 |
size | 15,346 |
This library tries to wrap sfdx/sf cli commands into rust functions.
use sfrx::orgs::*;
fn main() {
match orgs::org_list() {
Ok(org_list_output) => {
for scratch_org in org_list_output.result.scratch_orgs {
print!("{}", scratch_org.org_name);
}
}
Err(err) => eprintln!("Error: {}", err),
}
}
This project is still in development until i find the time to port more commands and am satisfied with the state of documentation