Commit graph

13 commits

Author SHA1 Message Date
f98ea1afec refactor: format 2025-03-01 23:45:22 +09:00
qwjyh
bd8e2019fe
implement sync subcommand (#21)
* new(sync): implement sync subcommand (WIP)

TODO
- update CHANGELOG
- refactor sync func

* fix(sync): add pull (only fast forward)

* update(test): use sync command

The first sync from 2nd device didn't work, maybe due to that it is the
first push.

* refactor: separate push and pull to funcs

* refactor: change merge analysis match order

* refactor: add logs

* update: CHANGELOG

* fix: CHANGELOG was wrong
2025-02-27 02:56:39 +09:00
155992d1cc fix clippy warnings 2024-06-19 17:37:19 +09:00
bac829c1f1 lint with clippy
fix problems reported by clippy excepts about unused functions
2024-03-18 08:36:07 +09:00
f5fe3d6580 update docs & Cargo.toml 2024-03-17 03:25:44 +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
56563a0e8b add backup related types and cmd arguments
- fix some typos & format
2024-03-13 20:09:51 +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
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
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
ff72228821 [refactor] separate subcommands to other file 2024-02-28 03:17:32 +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