mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
add new and create function for ToolboxContainer struct (#16)
This commit is contained in:
@@ -94,7 +94,25 @@ pub struct PodManInspectState {
|
|||||||
pub status: String,
|
pub status: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub enum ToolboxCreateParameter {
|
||||||
|
None,
|
||||||
|
Distro(String),
|
||||||
|
Image(String),
|
||||||
|
Release(String),
|
||||||
|
}
|
||||||
|
|
||||||
impl ToolbxContainer {
|
impl ToolbxContainer {
|
||||||
|
pub fn new(name: String) -> ToolbxContainer {
|
||||||
|
ToolbxContainer {
|
||||||
|
name: name,
|
||||||
|
..Default::default()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub fn create(name: String, parameter: ToolboxCreateParameter) {
|
||||||
|
todo!("Implement actual functionality to create toolbox via commandline")
|
||||||
|
}
|
||||||
|
|
||||||
pub fn get_toolboxes() -> Vec<ToolbxContainer> {
|
pub fn get_toolboxes() -> Vec<ToolbxContainer> {
|
||||||
let output = run_cmd_toolbx_list_containers();
|
let output = run_cmd_toolbx_list_containers();
|
||||||
println!("{}", output);
|
println!("{}", output);
|
||||||
|
|||||||
Reference in New Issue
Block a user