diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-07 15:44:25 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-07 15:44:25 +0200 |
commit | f085e59b21f579c85ba69bd45ef379e8fb80255b (patch) | |
tree | c4b5379110cbc709a0838eaf08fce3491289150c | |
parent | a70482822219dd9a64747b257d586d60679636c3 (diff) | |
download | vmadm-f085e59b21f579c85ba69bd45ef379e8fb80255b.tar.gz |
chore: delete some code that was commented out
-rw-r--r-- | src/bin/vmadm.rs | 46 |
1 files changed, 3 insertions, 43 deletions
diff --git a/src/bin/vmadm.rs b/src/bin/vmadm.rs index 8fe5540..9b16966 100644 --- a/src/bin/vmadm.rs +++ b/src/bin/vmadm.rs @@ -1,18 +1,11 @@ use anyhow::Context; use directories_next::ProjectDirs; -use vmadm::cmd; -use vmadm::config::Configuration; -use vmadm::spec::Specification; -//use bytesize::GIB; use log::debug; -//use std::fs; use std::path::{Path, PathBuf}; -//use std::thread; use structopt::StructOpt; -//use vmadm::cloudinit::CloudInitConfig; -//use vmadm::image::VirtualMachineImage; -//use vmadm::install::{virt_install, VirtInstallArgs}; -//use vmadm::spec::Specification; +use vmadm::cmd; +use vmadm::config::Configuration; +use vmadm::spec::Specification; const QUALIFIER: &str = ""; const ORG: &str = ""; @@ -122,36 +115,3 @@ fn config_filename(common: &CommonOptions) -> PathBuf { } } } - -// fn cloud_init(spec: &Path, dirname: &Path) -> anyhow::Result<()> { -// info!("generating cloud-init configuration"); - -// debug!("reading specification from {}", spec.display()); -// let spec = fs::read(spec)?; -// let spec: Specification = serde_yaml::from_slice(&spec)?; -// debug!("spec:\n{:#?}", spec); - -// info!("creating cloud-init config"); -// let init = CloudInitConfig::from(&spec)?; - -// debug!("creating directory {}", dirname.display()); -// std::fs::create_dir_all(dirname)?; -// init.create_dir(dirname)?; - -// Ok(()) -// } - -// fn cloud_init_iso(spec: &Path, iso: &Path) -> anyhow::Result<()> { -// info!("generating cloud-init ISO"); - -// debug!("reading specification from {}", spec.display()); -// let spec = fs::read(spec)?; -// let spec: Specification = serde_yaml::from_slice(&spec)?; -// debug!("spec:\n{:#?}", spec); - -// info!("creating cloud-init config"); -// let init = CloudInitConfig::from(&spec)?; -// init.create_iso(iso)?; - -// Ok(()) -// } |