Commit graph

59 commits

Author SHA1 Message Date
6e1619aa18 fmt 2024-06-28 00:33:45 +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
f43b508819 update byte formatting 2024-06-19 18:19:35 +09:00
44674262a6 update dependencies (especially byte_unit)
- update formatting byte units
2024-06-19 18:07:31 +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
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
0e6256b74f update metadata & readme
- fix some typos
- format
2024-03-18 08:58:33 +09:00
bac829c1f1 lint with clippy
fix problems reported by clippy excepts about unused functions
2024-03-18 08:36:07 +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
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
d9812bf006 fixup! add backup related types and cmd arguments 2024-03-14 02:14:55 +09:00
56563a0e8b add backup related types and cmd arguments
- fix some typos & format
2024-03-13 20:09:51 +09:00
d1f7a4787e (WIP) implement sync 2024-03-13 05:36:37 +09:00
498dd2db9b update storage bind 2024-03-13 05:36:19 +09:00
7c8ee7a500 redesign storage add Commands
- replace storage add args with subcommands of physical, directory,
  online
- to make argument dependencies clearer
2024-03-12 16:18:24 +09:00
e3675632c1 fixup! replace raw HashMap with Storages 2024-03-12 00:02:32 +09:00
8eb7d1179d init STORAGESFILE and DEVICESFILE at repo init and change Storages.read
- return Err instead of new object when there is no STORAGESFILE
- setup empty DEVICESFILE and STORAGESFILE at repository initialization
- update readme
2024-03-11 09:18:17 +09:00
7e026ec229 replace raw HashMap with Storages 2024-03-10 13:00:28 +09:00
4283e1e98a change init command & add integration test
- now need to specify device name via cmd arg
- can use private repository with ssh key or ssh-agent
- adding integration test utility crates
2024-03-07 14:59:58 +09:00
9935f79920 add option to provide config dir 2024-03-06 03:49:32 +09:00
24f34da588 update storage list and some refactor 2024-03-03 06:11:25 +09:00
ff72228821 [refactor] separate subcommands to other file 2024-02-28 03:17:32 +09:00
b949cca1e8 refactor: separate argument defs 2024-02-27 13:59:13 +09:00
71e3cad6da new: method for storage list 2024-02-24 18:31:56 +09:00
2f9fa08cf2 storages.yml check 2023-12-08 03:25:15 +09:00
5f81eccd2d add for online, refactored bind 2023-12-08 03:18:31 +09:00
017e34d392 add manual type for physical drive add 2023-12-07 04:23:24 +09:00
bf1a5e23fe update doc 2023-12-06 12:46:20 +09:00
b54cbf00f0 online storage & fix directory parent find & and so on 2023-12-06 11:18:46 +09:00
83233740aa move device related functions & add doc 2023-12-05 03:58:19 +09:00
9706e8d41e remove unnecessary file 2023-12-05 03:30:40 +09:00
abcb01897f new: adding sub-directory 2023-12-05 03:24:49 +09:00
7a4c1e5325 Use HashMap instead of Vector<Storage> 2023-12-04 21:34:24 +09:00
1f0e43cd52 (WIP) implementing storage::directory 2023-09-01 10:37:30 +09:00
33e1a9aba7 refactoring: moved storage related functions to crate storage 2023-08-30 03:05:26 +09:00
78b2d956a7 fix: storage bind (add writing and commiting) 2023-08-30 02:52:12 +09:00
d7e7665739 new: storage bind 2023-08-29 21:33:46 +09:00
ae9cd0ee4c add: Debug for storages 2023-08-29 04:22:04 +09:00