Commit graph

65 commits

Author SHA1 Message Date
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
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
d212d32430 add test for storage add online 2024-03-13 04:25:38 +09:00
1aa74acf31 update test to use bare repository to simulate multi device 2024-03-13 04:08:57 +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
01dd0ad77a Merge branch 'main' of github.com:qwjyh/xdbm 2024-02-27 13:07:56 +09:00
5c83532719 Revert "refactor: separate subcommands"
This reverts commit 4502113e41.
2024-02-27 13:07:49 +09:00
4502113e41 refactor: separate subcommands 2024-02-27 13:02:09 +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