Commit graph

93 commits

Author SHA1 Message Date
37782c934c (WIP) new: implement status subcommand
- Error while getting mount path of Storages
- Need to redesign the API of LocalInfo or something
2024-08-07 11:39:58 +02:00
0abf9c0693 update readme 2024-07-15 12:12:38 +09:00
6e1619aa18 fmt 2024-06-28 00:33:45 +09:00
b9bb207f35 add integrated test 2024-06-28 00:32:49 +09:00
3b7e2387bd update CHANGELOG & README for #15 2024-06-27 20:41:54 +09:00
qwjyh
ea0acf177c
pretty printing (#15)
* pretty printing for `backup list` and `backup list --long`

* switch coloring crate from colored to console

- console can handle Style separately

* Style for storage list
2024-06-27 18:06:27 +09:00
a7c81d5976 bump to v0.2.1 2024-06-19 18:32:08 +09:00
qwjyh
bdd2d32901
Merge pull request #12 from qwjyh/update-dependencies
Update dependencies
2024-06-19 18:26:44 +09:00
1f7b992010 update changelog 2024-06-19 18:24:36 +09:00
f43b508819 update byte formatting 2024-06-19 18:19:35 +09:00
46ffab3425 update unicode-width 2024-06-19 18:09:20 +09:00
44674262a6 update dependencies (especially byte_unit)
- update formatting byte units
2024-06-19 18:07:31 +09:00
a389935819 update clap-verbosity-flag 2024-06-19 17:37:42 +09:00
155992d1cc fix clippy warnings 2024-06-19 17:37:19 +09:00
78b3d0d308 update dependency: sysinfo 0.29 -> 0.30 2024-06-19 17:33:58 +09:00
0f7095b229 update libgit2-sys for dependabot alerts #2
https://github.com/qwjyh/xdbm/security/dependabot/2
2024-06-19 16:08:11 +09:00
fe2847ba5b bump version to v0.2.0 2024-05-21 18:02:39 +09:00
d64cf6e255 Updated CHANGELOG regarding #10 and #11 2024-05-21 17:59:28 +09:00
qwjyh
2b4efd71bc
Merge pull request #11 from qwjyh/btreemap
Replace HashMap with BTreeMap

in storages, backups and localinfo
2024-05-21 14:53:53 +09:00
87b73bd125 change types for localinfos 2024-05-21 14:45:20 +09:00
df0ce53d84 fixup! replace HashMap with BTreeMap in Storages and Backups 2024-05-21 14:44:53 +09:00
feb51a5653 replace HashMap with BTreeMap in Storages and Backups
to produce cleaner git log
2024-05-21 14:34:30 +09:00
qwjyh
6f8a71fe8d
Merge pull request #10 from qwjyh/setup-ci
Setup CI
Now `cargo test` should work on GHA.
2024-05-04 15:04:56 +09:00
51fd4207ea fixup! fix test to fetch refspecs from the git2 2024-05-04 15:03:02 +09:00
c9eb34aa69 fix test to fetch refspecs from the git2 2024-05-04 14:55:00 +09:00
4fcb7fc354 fixup! [fix] test: setup gitconfig at repo init 2024-04-26 01:35:42 +09:00
607013c649 fixup! [fix] test: setup gitconfig at repo init 2024-04-26 00:21:42 +09:00
30ae6a6417 fixup! [fix] test: setup gitconfig at repo init 2024-04-25 17:01:34 +09:00
462c34cf96 [fix] test: setup gitconfig at repo init 2024-04-25 16:54:43 +09:00
qwjyh
00f2057ae4
Create rust.yml 2024-04-25 16:52:06 +09:00
6bb1893fa2 release 0.1.0 (add CHANGELOG) 2024-03-18 09:19:58 +09:00
0e6256b74f update metadata & readme
- fix some typos
- format
2024-03-18 08:58:33 +09:00
1794b8b409 add test for backup add/done with single device
This works on Windows.
It still needs git config to perform commit.
2024-03-18 08:40:49 +09:00
bac829c1f1 lint with clippy
fix problems reported by clippy excepts about unused functions
2024-03-18 08:36:07 +09:00
01f959b666 update dependencies 2024-03-17 20:29:06 +09:00
7e6159933f update docs to list subcmd arguments 2024-03-17 20:02:27 +09:00
4c0da32998 add check subcommand 2024-03-17 20:02:10 +09:00
8396b8c97d add shell completion script generation 2024-03-17 04:08:47 +09:00
f5fe3d6580 update docs & Cargo.toml 2024-03-17 03:25:44 +09:00
0e8bd6b4c7 remove unnecessary arguments for StorageExt::mount_path 2024-03-17 02:47:34 +09:00
ed43d819d6 test for util::{min_parent_storage, expand_tilde} 2024-03-17 02:37:31 +09:00
b1b174b4b3 add backup done 2024-03-16 23:28:09 +09:00
4f0d725b52 fix: windows path canonicalization
use these
- expand_tilde
- dunce::canonicalize
2024-03-15 20:54:26 +09:00
26fbea5d3a test for backup_add 2024-03-15 13:56:23 +09:00
ff32996360 new subcommand: backup list
- todo: fancy print
2024-03-15 04:19:26 +09:00
d947dd35e0 Revert "Create rust.yml"
This reverts commit f0d19a13e5.
Need to configure git in CI.
2024-03-14 09:03:12 +09:00
qwjyh
f0d19a13e5
Create rust.yml
with default
2024-03-14 08:59:37 +09:00
38957c1d39 cargo update 2024-03-14 08:57:49 +09:00
905d392419 add backup add
- change Storage::parent
- split path diff calc to util
- test for backup add
2024-03-14 08:54:12 +09:00
41b2924ad7 add test for storage add
- failure due to name duplication
- success with online & subdirectory with two devices
    - used local git to write test (TODO?: use only git2)
2024-03-14 06:35:11 +09:00