-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix: Add argbash support + some refactors #1819
Conversation
…esql in tests.nix
Each postgrest- script now has a -h/--help option showing the checked-shell-script.docs argument. Additional CLI arguments can be defined through the checked-shell-script.args argument using the argbash template syntax: https://argbash.readthedocs.io/en/stable/guide.html
39be2a5
to
d7d7777
Compare
Did it now. TODO:
|
… in argbash scripts This improves passing subcommands to postgrest-with- tools.
Unless CI tells me otherwise... I think I'm done with this for now. Feedback very much welcome, especially from maybe just running |
Really cool, didn't know about argbash. I'm liking the new The postgrest-release-github -h
line 25: GITHUB_TOKEN: unbound variable
postgrest-release-dockerhub -h
line 15: DOCKER_REPO: unbound variable
postgrest-release-dockerhubdescription -h
line 12: DOCKER_USER: unbound variable |
Hm. I am getting the following output:
Are you sure, you are on the latest commit of this branch? The last few commits changed some stuff for the |
I love it! works great for me. That will bring our dev environment to another level! |
Avoids confusion with `memoryTest`.
Had a few more small changes and refactors to the nix code. Importing stuff into Two changes, for consistency:
Also fixed |
Short of CI failures, I'll leave it at that and start rebasing my other two nix PRs on this one. |
6d1d001 not sure about that one... 'flat is better than nested'. Should we leave it flat? Or alternatively, name the directory 'tools'? |
Flat is fine - until I can't find things anymore :D. It was a lot of files by now in I had |
Yes, good point.
|
c68cca1
to
e786abc
Compare
This adds argbash support to our nix-shell scripts. None of the current scripts use any options or flags, yet, but I'd like to do so in #1805 and #1812. All scripts now have a
--help
output to display thedocs
string we had already in place.Also added some smaller refactors I did on the other branches already - and some new ones, too.
We still need to figure out how to add argbash auto-complete support, but we can do that later.