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

Simplify rib CLI commands #145

Closed
srid opened this issue Apr 7, 2020 · 0 comments · Fixed by #147
Closed

Simplify rib CLI commands #145

srid opened this issue Apr 7, 2020 · 0 comments · Fixed by #147
Labels
Milestone

Comments

@srid
Copy link
Owner

srid commented Apr 7, 2020

[aka. Don't use sub-commands when they aren't necessary for the task]

Instead of having multiple sub-commands, each taking their own options, simply have one implicit top-level command, that takes a list of options.

That is,

$ ./result/bin/rib-sample  # Generates the site once
$ ./result/bin/rib-sample --watch # Generates, and regenerates when source dir changes
$ ./result/bin/rib-sample --watch --serve # Also serves the output directory

This idea has been brewing for a while now, but #143 finally nudged me to file an issue for it.

@srid srid added the API label Apr 7, 2020
@srid srid added this to the 0.10 milestone Apr 7, 2020
@srid srid closed this as completed in #147 Apr 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant