mirror of
https://github.com/bytedream/docker4ssh.git
synced 2025-06-27 18:00:31 +02:00
Change error library to anyhow
This commit is contained in:
@ -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<()>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user