Commit graph

20 commits

Author SHA1 Message Date
427128fe5c Print data dir only in status command 2025-05-03 01:09:19 +02:00
3f2b3d2f73 Don't resolve name when it isn't unique 2025-05-03 00:49:42 +02:00
efafc085f3 Add repo remove command 2025-05-03 00:49:42 +02:00
f77db3c6f8 Fix some lints 2025-05-02 01:28:05 +02:00
0baf79cb8c Match on version constants instead of number literals 2025-05-02 01:27:03 +02:00
2c5ff584db Add repo add and repo show commands 2025-04-30 00:49:04 +02:00
a8599ee05c Depend on vendored libgit2 2025-04-29 01:54:31 +02:00
3a3a2de8dc Store repo names and selected repo in state 2025-04-29 01:33:28 +02:00
427dce3e48 Add status cli command 2025-04-28 12:49:32 +02:00
1ed5e5d600 Fix migration failing to create data dir 2025-04-28 12:48:39 +02:00
4b11b4ce62 Move module definitions after imports
The style guide says: "Put imports before module declarations."
See https://doc.rust-lang.org/style-guide/items.html

Cargo also does this automatically.
2025-04-28 01:45:14 +02:00
97d79f5747 Rename methods for clarity
Path resolving methods now start with "path".
2025-04-28 01:38:04 +02:00
69f36de2d3 Migrate to rust edition 2024 2025-02-21 12:54:47 +01:00
cc74779e5d Fix compilation error on windows
I was using unix-specific APIs.
2025-02-20 12:10:11 +01:00
4909aa0a29 Don't migrate existing data dir without version number
If there is a directory but no version number, we have no idea what's
going on. If we continue the migration, we might overwrite or break some
other program's data.
2025-02-20 01:46:42 +01:00
9d2d1fa3c1 Add migrate cli command 2025-02-19 14:00:25 +01:00
909399b276 Implement basic data directory operations 2025-02-19 14:00:18 +01:00
58cd4d7517 Add RepoId 2025-02-17 22:48:49 +01:00
3855d86730 Move ids from gdn-app to gdn 2025-02-17 22:37:59 +01:00
c80325ea40 Locate data dir on Linux and Windows 2025-01-25 12:04:18 +01:00