Commit graph

18 commits

Author SHA1 Message Date
qwjyh
e9c1872d79
Use git cli in sync subcommand, and make custom implementation optional (#27)
* new: add use_cl option and separate to function

* refactor: format

* new(sync): add option to use git cli

* change(sync)!: now it use git cli by default

* lint: remove unnecessary ref

* fix(sync): use stderr for log prints

* update: CHANGELOG
2025-03-02 11:20:19 +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
07ef49ca7b add: long argument option to cmd_status 2024-12-02 03:07:25 +09:00
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
6e1619aa18 fmt 2024-06-28 00:33:45 +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
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
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
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
b949cca1e8 refactor: separate argument defs 2024-02-27 13:59:13 +09:00