Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/alvinosh/adding-cli-commands' in…
Browse files Browse the repository at this point in the history
…to alvinosh/adding-cli-commands
  • Loading branch information
alvinosh committed Jan 18, 2024
2 parents ebdb986 + f72b255 commit d9ac4af
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "ark-cli"

[dependencies]
tokio = { version = "1.35.1", features = ["full"] }
arklib = { git = "https://github.com/ARK-Builders/arklib", rev = "1249e6c" }
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"
Expand Down
15 changes: 8 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::env::{self, current_dir};
use std::env::current_dir;
use std::fs::{canonicalize, create_dir_all, metadata, File};
use std::io::prelude::*;
use std::io::BufReader;
Expand All @@ -7,11 +7,12 @@ use std::str::FromStr;
use std::thread;
use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};

use arklib::id::{app_id, ResourceId};
use arklib::app_id;
use arklib::id::ResourceId;
use arklib::index::ResourceIndex;
use arklib::pdf::PDFQuality;
use arklib::{
modify, modify_json, AtomicFile, ARK_FOLDER, DEVICE_ID, FAVORITES_FILE,
modify, modify_json, AtomicFile, APP_ID_FILE, ARK_FOLDER, FAVORITES_FILE,
METADATA_STORAGE_FOLDER, PREVIEWS_STORAGE_FOLDER,
PROPERTIES_STORAGE_FOLDER, SCORE_STORAGE_FILE, STATS_FOLDER,
TAG_STORAGE_FILE, THUMBNAILS_STORAGE_FOLDER,
Expand Down Expand Up @@ -536,17 +537,17 @@ fn get_storage_from_path(storage: &PathBuf) -> Option<PathBuf> {
.join(ARK_FOLDER)
.join(FAVORITES_FILE),
),
"device" => Some(
"app-id" => Some(
provide_root(&None)
.join(ARK_FOLDER)
.join(DEVICE_ID),
.join(APP_ID_FILE),
),
"tage" => Some(
"tags" => Some(
provide_root(&None)
.join(ARK_FOLDER)
.join(TAG_STORAGE_FILE),
),
"score" => Some(
"scores" => Some(
provide_root(&None)
.join(ARK_FOLDER)
.join(SCORE_STORAGE_FILE),
Expand Down

0 comments on commit d9ac4af

Please sign in to comment.