mirror of
https://github.com/qwjyh/xdbm
synced 2024-12-05 04:51:04 +09:00
Compare commits
5 commits
aed0049f98
...
90cebed15f
Author | SHA1 | Date | |
---|---|---|---|
90cebed15f | |||
1d6c0eb75d | |||
877410cd19 | |||
|
9240636e69 | ||
51e90b28cd |
5 changed files with 614 additions and 306 deletions
|
@ -1,11 +1,13 @@
|
|||
# Changelog
|
||||
|
||||
## [Unreleased]
|
||||
## [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)).
|
||||
|
||||
### 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
|
||||
|
||||
|
@ -37,7 +39,8 @@
|
|||
- `backup done` subcommand
|
||||
- `completion` subcommand
|
||||
|
||||
[Unreleased]: https://github.com/qwjyh/xdbm/compare/v0.2.1...HEAD
|
||||
[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
|
||||
[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
881
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
24
Cargo.toml
24
Cargo.toml
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "xdbm"
|
||||
version = "0.2.1"
|
||||
version = "0.3.0"
|
||||
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.4.0", features = ["cargo", "derive"] }
|
||||
sysinfo = { version = "0.30", features = ["serde"] }
|
||||
clap = { version = "4.5", features = ["cargo", "derive"] }
|
||||
sysinfo = { version = "0.32", features = ["serde"] }
|
||||
log = "0.4"
|
||||
clap-verbosity-flag = "2.2"
|
||||
clap-verbosity-flag = "3.0"
|
||||
clap_complete = "4.5"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
env_logger = "0.11.3"
|
||||
env_logger = "0.11.5"
|
||||
inquire = "0.7.5"
|
||||
git2 = "0.19"
|
||||
dirs = "5.0"
|
||||
dunce = "1.0.4"
|
||||
dunce = "1.0.5"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_yaml = "0.9"
|
||||
byte-unit = "5.1.4"
|
||||
byte-unit = "5.1"
|
||||
anyhow = "1.0"
|
||||
pathdiff = "0.2.1"
|
||||
unicode-width = "0.1.13"
|
||||
pathdiff = "0.2.3"
|
||||
unicode-width = "0.2.0"
|
||||
console = "0.15"
|
||||
|
||||
[dev-dependencies]
|
||||
assert_cmd = "2.0.14"
|
||||
assert_fs = "1.1.1"
|
||||
predicates = "3.1.0"
|
||||
assert_cmd = "2.0.16"
|
||||
assert_fs = "1.1.2"
|
||||
predicates = "3.1.2"
|
||||
|
|
|
@ -7,7 +7,7 @@ use crate::storages::{
|
|||
};
|
||||
use anyhow::{anyhow, Context, Result};
|
||||
use clap::ValueEnum;
|
||||
use console::{style, Style, StyledObject};
|
||||
use console::Style;
|
||||
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<&Storage>;
|
||||
fn parent<'a>(&'a self, storages: &'a Storages) -> Option<&'a Storage>;
|
||||
}
|
||||
|
||||
pub mod directory;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Online storage which is not a children of any physical drive.
|
||||
|
||||
use anyhow::{Context, Result};
|
||||
use anyhow::Result;
|
||||
use byte_unit::Byte;
|
||||
use byte_unit::UnitType;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
|
Loading…
Reference in a new issue