Compare commits

...

5 commits

Author SHA1 Message Date
90cebed15f bump to v0.3.0 2024-12-02 13:10:28 +09:00
1d6c0eb75d update: CHANGELOG (change category of notes on adding status subcommand) 2024-12-02 13:08:23 +09:00
877410cd19 fix: some clippy warnings 2024-12-02 13:07:40 +09:00
qwjyh
9240636e69
Merge pull request #19 from qwjyh/update-dependencies
Update dependencies
2024-12-02 12:55:49 +09:00
51e90b28cd Update dependencies
cargo update

update clap

update sysinfo 0.30 to 0.31

update sysninfo 0.31 to 0.32

update clap-verbosity-flag 2.2 -> 3.0

update env_logger 0.11.3 -> 0.11.5

update dependencies(unicode-width, dunce, pathdiff, byte-unit)

update test dependencies
2024-12-02 12:50:29 +09:00
5 changed files with 614 additions and 306 deletions

View file

@ -1,11 +1,13 @@
# Changelog # 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 ### Changed
- Colored output for `storage list` and `backup list` ([#15](https://github.com/qwjyh/xdbm/pull/15)) - 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. - **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 ## [0.2.1] - 2024-06-19
@ -37,7 +39,8 @@
- `backup done` subcommand - `backup done` subcommand
- `completion` 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.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.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 [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] [package]
name = "xdbm" name = "xdbm"
version = "0.2.1" version = "0.3.0"
authors = ["qwjyh <urataw421@gmail.com>"] authors = ["qwjyh <urataw421@gmail.com>"]
edition = "2021" edition = "2021"
description = "Cross device backup manager, which manages backups on several storages mounted on multiple devices." 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 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
clap = { version = "4.4.0", features = ["cargo", "derive"] } clap = { version = "4.5", features = ["cargo", "derive"] }
sysinfo = { version = "0.30", features = ["serde"] } sysinfo = { version = "0.32", features = ["serde"] }
log = "0.4" log = "0.4"
clap-verbosity-flag = "2.2" clap-verbosity-flag = "3.0"
clap_complete = "4.5" clap_complete = "4.5"
chrono = { version = "0.4", features = ["serde"] } chrono = { version = "0.4", features = ["serde"] }
env_logger = "0.11.3" env_logger = "0.11.5"
inquire = "0.7.5" inquire = "0.7.5"
git2 = "0.19" git2 = "0.19"
dirs = "5.0" dirs = "5.0"
dunce = "1.0.4" dunce = "1.0.5"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9" serde_yaml = "0.9"
byte-unit = "5.1.4" byte-unit = "5.1"
anyhow = "1.0" anyhow = "1.0"
pathdiff = "0.2.1" pathdiff = "0.2.3"
unicode-width = "0.1.13" unicode-width = "0.2.0"
console = "0.15" console = "0.15"
[dev-dependencies] [dev-dependencies]
assert_cmd = "2.0.14" assert_cmd = "2.0.16"
assert_fs = "1.1.1" assert_fs = "1.1.2"
predicates = "3.1.0" predicates = "3.1.2"

View file

@ -7,7 +7,7 @@ use crate::storages::{
}; };
use anyhow::{anyhow, Context, Result}; use anyhow::{anyhow, Context, Result};
use clap::ValueEnum; use clap::ValueEnum;
use console::{style, Style, StyledObject}; use console::Style;
use core::panic; use core::panic;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::{collections::BTreeMap, fmt, fs, io, path}; use std::{collections::BTreeMap, fmt, fs, io, path};
@ -156,7 +156,7 @@ pub trait StorageExt {
) -> Result<()>; ) -> Result<()>;
/// Get parent /// 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; pub mod directory;

View file

@ -1,6 +1,6 @@
//! Online storage which is not a children of any physical drive. //! 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::Byte;
use byte_unit::UnitType; use byte_unit::UnitType;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};