git flow was a mistake #11

Merged
cafkafk merged 29 commits from dev into main 2023-08-09 16:27:57 +02:00

29 commits

Author SHA1 Message Date
Christina Sørensen
8da774af66
chore: name project seidr
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-09 16:27:09 +02:00
Christina Sørensen
3b19c90cca
fix: deperacte lib.rs
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-08 16:43:48 +02:00
Christina Sørensen
56aca1a2fc
fix: remove feature
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-08 16:37:45 +02:00
Christina Sørensen
db96d49d0f
chore: fix rust version for nixpkgs compatibility
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-08-08 16:33:51 +02:00
Christina Sørensen
81c2821c8c
refactor: code quality improvements
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-24 07:36:21 +02:00
Christina Sørensen
78f3aa5a1d
feat: kind gitrepo validator+testing
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-24 07:19:34 +02:00
Christina Sørensen
9041a1626b
fix(git): fix case of validators
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-24 07:04:10 +02:00
Christina Sørensen
105d96a601
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-07-24 07:00:48 +02:00
Christina Sørensen
ad569e23ba
feat: made all repo fields options
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-24 06:52:46 +02:00
Christina Sørensen
8de0fa8eae
doc(git): documented run_series macro
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-20 17:09:15 +02:00
Christina Sørensen
66de3fc7f3
refactor(git): started implementing validity check for repo kinds
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-20 16:57:30 +02:00
Christina Sørensen
ff837c9a64
refactor(git): removed series_on_all
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-20 16:41:07 +02:00
Christina Sørensen
8c186b17d3
refactor: remove duplicate code on Config
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-20 16:38:02 +02:00
Christina Sørensen
19a7acf284
tests: added kinds to test config
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-17 11:19:08 +02:00
Christina Sørensen
0d6afbc772
feat: added repo kinds
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-17 11:16:12 +02:00
Christina Sørensen
b345ab7e4e
refactor: renamed GitRepo to Repo
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-17 11:08:12 +02:00
Christina Sørensen
ccf20d7363
refactor: added kind field to GitRepo
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-17 11:04:26 +02:00
Christina Sørensen
674edc240e
refactor: added RepoKinds enum
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-17 11:01:46 +02:00
Christina Sørensen
36ac077fe7
refactor: made RepoFlags non exhaustive
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-17 11:00:14 +02:00
Christina Sørensen
579d9ea972
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-07-17 10:45:13 +02:00
Christina Sørensen
5cc54e23f5
feat: -m flag (untested)
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-13 08:01:08 +02:00
Christina Sørensen
7c6fa896e7
fix(main,cli): naming was confusing
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-13 07:23:01 +02:00
Christina Sørensen
3217e27d4b
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-07-11 19:54:05 +02:00
Christina Sørensen
e3617956fe
doc: cleaned up comments
Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-11 16:58:51 +02:00
Christina Sørensen
7a31030aca
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-07-11 16:56:23 +02:00
Christina Sørensen
63688b0d6e
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-07-08 07:53:45 +02:00
Christina Sørensen
ea3f3e6bb2
feat(cli): added jump command
Still not implemented!

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2023-07-08 07:03:01 +02:00
Christina Sørensen
8b20c2a490
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-07-07 06:38:17 +02:00
Christina Sørensen
1768cd93a8
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-07-07 06:37:09 +02:00