Commit graph

71 commits

Author SHA1 Message Date
4e8387e3b0 fix typo 2024-12-02 03:07:48 +09:00
07ef49ca7b add: long argument option to cmd_status 2024-12-02 03:07:25 +09:00
7e043a652c update: don't display devices with no backups in cmd_status 2024-12-02 02:53:30 +09:00
af1b56eee2 add: style to cmd_status 2024-12-02 02:52:53 +09:00
d743e607ac update: remove todo!() at the end of cmd_status 2024-12-01 23:14:50 +09:00
6a0abd03d5 fix: apply subpath logic patch to util::min_parent_storage 2024-12-01 20:55:49 +09:00
ced354bf58 fix: sub directory decision logic on windows
Diff of "C:\foo" from "D:\" is "C:\foo" and doesn't contain "..". In old
logic, "C:\foo" is treated as subpath of "D:\" but this is not
intuitive.
2024-12-01 20:41:37 +09:00
8b0dbb2314 fix: add lifetime annotation (clippy) 2024-12-01 19:19:28 +09:00
772689ab6a change: change type of relative path shared on multiple platforms to Vector<String>
Parsers for path on Windows and Unix are different on separator character treatment.
Replacing to Vector<String> avoids this differenct for cross-platform compatibility.
2024-12-01 19:14:57 +09:00
bc3939c9bc (WIP): implementing multi device backup search 2024-11-08 06:09:04 +09:00
a409a43906 (WIP) feat: stat for backup with name
- replace path funcs return from Result to Option
- add tests for `parent_backups`
2024-08-09 21:45:44 +02: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
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