From 87df3912d31e32df99c634e33acfd6877a0f7612 Mon Sep 17 00:00:00 2001 From: Tarek Date: Wed, 13 Mar 2024 01:40:34 +0200 Subject: [PATCH] define a crate ark-cli Signed-off-by: Tarek --- ark-cli/Cargo.toml | 22 ++++++++++++++++++++++ {commands => ark-cli/src/commands}/file.rs | 0 {commands => ark-cli/src/commands}/link.rs | 0 {commands => ark-cli/src/commands}/mod.rs | 0 error.rs => ark-cli/src/error.rs | 0 main.rs => ark-cli/src/main.rs | 0 {models => ark-cli/src/models}/cli.rs | 0 {models => ark-cli/src/models}/entry.rs | 0 {models => ark-cli/src/models}/format.rs | 0 {models => ark-cli/src/models}/mod.rs | 0 {models => ark-cli/src/models}/sort.rs | 0 {models => ark-cli/src/models}/storage.rs | 0 util.rs => ark-cli/src/util.rs | 0 13 files changed, 22 insertions(+) create mode 100644 ark-cli/Cargo.toml rename {commands => ark-cli/src/commands}/file.rs (100%) rename {commands => ark-cli/src/commands}/link.rs (100%) rename {commands => ark-cli/src/commands}/mod.rs (100%) rename error.rs => ark-cli/src/error.rs (100%) rename main.rs => ark-cli/src/main.rs (100%) rename {models => ark-cli/src/models}/cli.rs (100%) rename {models => ark-cli/src/models}/entry.rs (100%) rename {models => ark-cli/src/models}/format.rs (100%) rename {models => ark-cli/src/models}/mod.rs (100%) rename {models => ark-cli/src/models}/sort.rs (100%) rename {models => ark-cli/src/models}/storage.rs (100%) rename util.rs => ark-cli/src/util.rs (100%) diff --git a/ark-cli/Cargo.toml b/ark-cli/Cargo.toml new file mode 100644 index 00000000..1c257ce7 --- /dev/null +++ b/ark-cli/Cargo.toml @@ -0,0 +1,22 @@ +[package] +name = "ark-cli" +version = "0.1.0" +edition = "2021" + +[[bin]] +name = "ark-cli" + +[dependencies] +tokio = { version = "1.35.1", features = ["full"] } +arklib = { git = "https://github.com/ARK-Builders/arklib", rev = "2c7ceda" } +clap = { version = "3.0.10", features = ["derive"] } +env_logger = "0.9.0" +fs_extra = "1.2.0" +walkdir = "2.3.2" +home = "0.5.3" +url = { version = "2.2.2", features = ["serde"] } +serde_json = "1.0.82" +serde = { version = "1.0.138", features = ["derive"] } +chrono = "0.4.34" +anyhow = "1.0.80" +thiserror = "1.0.57" diff --git a/commands/file.rs b/ark-cli/src/commands/file.rs similarity index 100% rename from commands/file.rs rename to ark-cli/src/commands/file.rs diff --git a/commands/link.rs b/ark-cli/src/commands/link.rs similarity index 100% rename from commands/link.rs rename to ark-cli/src/commands/link.rs diff --git a/commands/mod.rs b/ark-cli/src/commands/mod.rs similarity index 100% rename from commands/mod.rs rename to ark-cli/src/commands/mod.rs diff --git a/error.rs b/ark-cli/src/error.rs similarity index 100% rename from error.rs rename to ark-cli/src/error.rs diff --git a/main.rs b/ark-cli/src/main.rs similarity index 100% rename from main.rs rename to ark-cli/src/main.rs diff --git a/models/cli.rs b/ark-cli/src/models/cli.rs similarity index 100% rename from models/cli.rs rename to ark-cli/src/models/cli.rs diff --git a/models/entry.rs b/ark-cli/src/models/entry.rs similarity index 100% rename from models/entry.rs rename to ark-cli/src/models/entry.rs diff --git a/models/format.rs b/ark-cli/src/models/format.rs similarity index 100% rename from models/format.rs rename to ark-cli/src/models/format.rs diff --git a/models/mod.rs b/ark-cli/src/models/mod.rs similarity index 100% rename from models/mod.rs rename to ark-cli/src/models/mod.rs diff --git a/models/sort.rs b/ark-cli/src/models/sort.rs similarity index 100% rename from models/sort.rs rename to ark-cli/src/models/sort.rs diff --git a/models/storage.rs b/ark-cli/src/models/storage.rs similarity index 100% rename from models/storage.rs rename to ark-cli/src/models/storage.rs diff --git a/util.rs b/ark-cli/src/util.rs similarity index 100% rename from util.rs rename to ark-cli/src/util.rs