Compare commits

..

No commits in common. "90cebed15fa0ba8e6d2b5692d2594a929f4eacbd" and "aed0049f98bee9a244994cc135862f7586894993" have entirely different histories.

5 changed files with 306 additions and 614 deletions

View file

@ -1,13 +1,11 @@
# Changelog
## [0.3.0] - 2024-12-02
### Added
- Add `status` subcommand to see storage and backup on given path or current working directory ([#17](https://github.com/qwjyh/xdbm/pull/17)).
## [Unreleased]
### Changed
- Colored output for `storage list` and `backup list` ([#15](https://github.com/qwjyh/xdbm/pull/15))
- **BREAKING** Relative path is changed from `PathBuf` to `Vector<String>` for portability. This means that existing config files need to be changed.
- Add `status` subcommand to see storage and backup on given path or current working directory ([#17](https://github.com/qwjyh/xdbm/pull/17)).
## [0.2.1] - 2024-06-19
@ -39,8 +37,7 @@
- `backup done` subcommand
- `completion` subcommand
[Unreleased]: https://github.com/qwjyh/xdbm/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/qwjyh/xdbm/compare/v0.2.1...v0.3.0
[Unreleased]: https://github.com/qwjyh/xdbm/compare/v0.2.1...HEAD
[0.2.1]: https://github.com/qwjyh/xdbm/compare/v0.2.0...v0.2.1
[0.2.0]: https://github.com/qwjyh/xdbm/releases/tag/v0.2.0
[0.1.0]: https://github.com/qwjyh/xdbm/releases/tag/v0.1.0

881
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
[package]
name = "xdbm"
version = "0.3.0"
version = "0.2.1"
authors = ["qwjyh <urataw421@gmail.com>"]
edition = "2021"
description = "Cross device backup manager, which manages backups on several storages mounted on multiple devices."
@ -13,26 +13,26 @@ keywords = ["cli", "backup"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = { version = "4.5", features = ["cargo", "derive"] }
sysinfo = { version = "0.32", features = ["serde"] }
clap = { version = "4.4.0", features = ["cargo", "derive"] }
sysinfo = { version = "0.30", features = ["serde"] }
log = "0.4"
clap-verbosity-flag = "3.0"
clap-verbosity-flag = "2.2"
clap_complete = "4.5"
chrono = { version = "0.4", features = ["serde"] }
env_logger = "0.11.5"
env_logger = "0.11.3"
inquire = "0.7.5"
git2 = "0.19"
dirs = "5.0"
dunce = "1.0.5"
dunce = "1.0.4"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
byte-unit = "5.1"
byte-unit = "5.1.4"
anyhow = "1.0"
pathdiff = "0.2.3"
unicode-width = "0.2.0"
pathdiff = "0.2.1"
unicode-width = "0.1.13"
console = "0.15"
[dev-dependencies]
assert_cmd = "2.0.16"
assert_fs = "1.1.2"
predicates = "3.1.2"
assert_cmd = "2.0.14"
assert_fs = "1.1.1"
predicates = "3.1.0"

View file

@ -7,7 +7,7 @@ use crate::storages::{
};
use anyhow::{anyhow, Context, Result};
use clap::ValueEnum;
use console::Style;
use console::{style, Style, StyledObject};
use core::panic;
use serde::{Deserialize, Serialize};
use std::{collections::BTreeMap, fmt, fs, io, path};
@ -156,7 +156,7 @@ pub trait StorageExt {
) -> Result<()>;
/// Get parent
fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&'a Storage>;
fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&Storage>;
}
pub mod directory;

View file

@ -1,6 +1,6 @@
//! Online storage which is not a children of any physical drive.
use anyhow::Result;
use anyhow::{Context, Result};
use byte_unit::Byte;
use byte_unit::UnitType;
use serde::{Deserialize, Serialize};