Skip to content
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

Thanks! (from divnix/std) #10

Open
blaggacao opened this issue Dec 24, 2022 · 6 comments
Open

Thanks! (from divnix/std) #10

blaggacao opened this issue Dec 24, 2022 · 6 comments

Comments

@blaggacao
Copy link

blaggacao commented Dec 24, 2022

Looks like you solved a use case for https://github.com/divnix/std when we want to encourage repository maintainers to write higher quality repo scripts / tasks.

Let's keep track here if any feedback comes up.

cc @jmgilman

@blaggacao
Copy link
Author

blaggacao commented Dec 24, 2022

First one: flake? 😊

I really don't want to wrap legacy nix projects for the complexity it entails in std.

@blaggacao
Copy link
Author

Second one: what have been your plans / ideas for positional arguments?

To keep a script interface simple and good dx, they are gold.

@lucasew
Copy link
Collaborator

lucasew commented Feb 17, 2023

Tbh I don't have that much idea about how to implement it, maybe something like how python's argparse works.

About the flake, I didn't used yet because I basically don't use external dependencies, but thinking about now it seems a good choice anyway.

I wanted to implement also the completion system but I really don't know how can I structure in a way that doesn't look very verbose.

@blaggacao
Copy link
Author

completion system but I really don't know how can I structure in a way that doesn't look very verbose.

Was your plan to put them as a file im the right place next to the derivation alongside ./bin/scriptname?

Or where you rather concerned about the verbosity of the Nix code?

@lucasew
Copy link
Collaborator

lucasew commented Feb 17, 2023

Tbh I added the derivation only as a convenience feature. The idea is to generate the completion files as a target option, but this can be also exposed in that derivation.

@lucasew
Copy link
Collaborator

lucasew commented Feb 17, 2023

Verbose I am refering about the nix code the user would need to write to define the CLIs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants