Change error library to anyhow

This commit is contained in:
2022-06-07 10:38:58 +02:00
parent 76ebcc65e0
commit 15c3f47792
5 changed files with 18 additions and 132 deletions

View File

@ -1,5 +1,6 @@
use std::process::Command;
use std::time::SystemTime;
use anyhow::Result;
use log::{info, warn};
use structopt::StructOpt;
use structopt::clap::AppSettings;
@ -8,8 +9,6 @@ use crate::shared::api::api::API;
use crate::shared::api::request;
use crate::shared::api::request::{ConfigGetResponse, ConfigNetworkMode, ConfigRunLevel};
type Result<T> = std::result::Result<T, failure::Error>;
trait Execute {
fn execute(self, api: &mut API) -> Result<()>;
}