Commit graph

135 commits

Author SHA1 Message Date
Christina Sørensen
7b88057b3f
refactor(link): remove debug error messages
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-17 07:02:22 +02:00
Christina Sørensen
9c474d665e
refactor(link): add LinkError::IoError wrapping, fix happy path
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-17 06:59:06 +02:00
Christina Sørensen
7a333b53bd
refactor(link): add error handling for linking
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-17 06:47:18 +02:00
Christina Sørensen
08f234d85a
refactor(link): add LinkError and use for handle_file_exists
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-16 19:40:53 +02:00
Christina Sørensen
cea9a4eb43
feat(clap): add force, unlink flags
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-16 18:46:23 +02:00
Christina Sørensen
b1a0c99264
build(git): add .direnv to gitignore
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-06 16:54:08 +02:00
Christina Sørensen
03b5a617c6
build(nix): do crane EZA style
This is essentailly taken from the work of 9glenda
https://github.com/eza-community/eza/pull/462

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-10-06 16:16:56 +02:00
Christina Sørensen
4f4cd5b7cb
docs: remove outdated gif, make readme cool 2023-10-06 13:54:19 +00:00
Christina Sørensen
faf3ca8554
docs: fix readme 2023-09-29 10:57:46 +00:00
Christina Sørensen
5e8f06cdb7 docs: explain dhall workflow
Leaving a rope for people that wonder how to do this in a less scary way.
2023-09-29 12:57:01 +02:00
Christina Sørensen
6081fea08c
build(cargo): set MSRV to 1.69
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-25 10:52:35 +02:00
Christina Sørensen
5aabd48fec
chore(flake): bump flake lock
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-25 10:45:59 +02:00
Christina Sørensen
c50483b07f
build(git): add gitignore
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-09-25 10:45:25 +02:00
Christina Sørensen
17e11726c1
chore: fix code of conduct
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:44:09 +02:00
Christina Sørensen
d32dbed166
ci: borrow ci setup from eza 2023-08-09 14:40:17 +00:00
Christina Sørensen
0a7e6cf439
doc: fix readme
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:36:56 +02:00
Christina Sørensen
658a5c9d8c chore: name project seidr
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
33c708f01d fix: deperacte lib.rs
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
3068bce5a8 fix: remove feature
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
a3fc76f8ff chore: fix rust version for nixpkgs compatibility
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
93054d0c1c refactor: code quality improvements
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
66d8014872 feat: kind gitrepo validator+testing
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
b5ab764ea7 fix(git): fix case of validators
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
e12dae4ebc feat: handle category without repos
This is a dirty hack, but we won't have to duplicate it when the kinds
field is done, so I don't feel /too/ bad about including it :D

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
49a6c65783 feat: made all repo fields options
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
9be5d10e28 doc(git): documented run_series macro
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
d17f14be97 refactor(git): started implementing validity check for repo kinds
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
c37cd42b7e refactor(git): removed series_on_all
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
72533ea8e8 refactor: remove duplicate code on Config
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
6993753889 tests: added kinds to test config
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
9e4b5cef2e feat: added repo kinds
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
93175124b8 refactor: renamed GitRepo to Repo
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
8cbff324e7 refactor: added kind field to GitRepo
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
83d2458b37 refactor: added RepoKinds enum
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
d8197b2731 refactor: made RepoFlags non exhaustive
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
98bcd7b79c refactor: started work on generic macro
This is to help make series operations more generic.

This refactor has been needed for a while, and I'm very excited to
finally start working on it, but this is just the bare minimum, we
still need to handle on a repo type basis.

But also, yes, this starts the slow crawl towards generic repos intead
of hardcoded functions for each repo type (links, gitrepo) etc

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
fb5250c8e1 feat: -m flag (untested)
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
9b86d9d6fb fix(main,cli): naming was confusing
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
8b94120214 feat(wip): repo and category selecting for subcmd
This starts to implement repo and category selecting for subcommands
that make use of these (push, pull, quick, fast... most of them!)

Still, this is proof of concept, now it needs to actually be made robust
and generalized, as well as implemented on all the commands.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
9d8128d3aa doc: cleaned up comments
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
fb691c710b fix(git): removed ugly comments
Feels like a code smell to use this ugly and non-idiomatic style.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
969bff4dd1 feat(jump): done, but not great
Of course, the calling process is different from us, and we can't
actually change their PWD >_<

*sigh*

But, this can be put in e.g. an alias, which seems to be what most
jump/cd expanding types of programs do. We are not those, so, going
beyond what most of those do with ptrace and hackery is not really in
scope...

But ugh, I hate this. But I still want this feature for myself
so ¯\_(ツ)_/¯

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
082ab57957 feat(cli): added jump command
Still not implemented!

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
fad27cce55 feat(benches): added benchmarking
Setup only for loading config file for now, probably not a lot of code
here that is super intensive, but having the structure set up to bench
is pretty nice when it's needed suddenly.

Two steps ahead as always, still haven't capitalized on the architecture
rewrite, yet here I am adding this.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
ad1c2736d5 test(git): fixed doc tests for git.rs
Adding git to the library file makes the doctests run.

Turns out they were very broken.

This commit sets us up for a refactor, with setter and getters.

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:56 +02:00
Christina Sørensen
c9b00adb57 chore(version): bump to v0.2.0
** [0.2.0] - 2023-07-07

*** Bug Fixes

- Made categories with only links possible

*** Features

- [**breaking**] Put links in categories

*** Miscellaneous Tasks

- Filled out Cargo.toml
- Added test.yaml to gitignore
- Fixed up code, roadmap for bump

*** Refactor

- Simple code quality changes

*** Testing

- Refactored testing, added tests dir

** [0.1.2] - 2023-07-03

*** Features

- Implemented quiet flag

*** Miscellaneous Tasks

- Bump to v0.1.2

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-07 04:13:59 +00:00
Christina Sørensen
c36000e7a0 chore: fixed up code, roadmap for bump
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-07 04:13:59 +00:00
Christina Sørensen
a4e3527973 fix(git): made categories with only links possible
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-07 04:13:59 +00:00
Christina Sørensen
f1fc08ab2c test: refactored testing, added tests dir
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-07 04:13:59 +00:00
Christina Sørensen
7e6b9312b5 refactor: simple code quality changes
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-07 04:13:59 +00:00