summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/config.rs b/src/config.rs
index fe93da6..dae3462 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -1,3 +1,9 @@
+use crate::utils::{emphasis, now};
+
+use anyhow::{anyhow, Context, Result};
+use inquire::{Confirm, Text};
+use parking_lot::Mutex;
+use serde::{Deserialize, Serialize};
use std::{
env,
fs::{create_dir_all, read_to_string, File, OpenOptions},
@@ -7,14 +13,6 @@ use std::{
sync::Arc,
};
-use parking_lot::Mutex;
-
-use anyhow::{anyhow, Context, Result};
-use inquire::{Confirm, Text};
-use serde::{Deserialize, Serialize};
-
-use crate::utils::{emphasis, now};
-
const CONFIG_FILE_NAME: &str = "config.yaml";
const ROLES_FILE_NAME: &str = "roles.yaml";
const HISTORY_FILE_NAME: &str = "history.txt";