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

Get a list of all rules #608

Closed
hasufell opened this issue Aug 16, 2018 · 2 comments
Closed

Get a list of all rules #608

hasufell opened this issue Aug 16, 2018 · 2 comments

Comments

@hasufell
Copy link

hasufell commented Aug 16, 2018

I don't see a way to do this. Am I missing something?

Ultimately this would be the start of a proper help rule, showing available rules, their description and possibly valid environment variables.

@ndmitchell
Copy link
Owner

No way to do that, but a great idea. Also a StackOverflow question at https://stackoverflow.com/questions/52749184/is-there-a-way-to-get-shake-build-system-to-show-all-the-rules-that-were-gener/52779484. Certainly on the list!

My best idea is some kind of addRuleName :: String -> Rules () and just accumulate them in Rules - and then have phony etc automatically populate them.

@ndmitchell
Copy link
Owner

Done as part of #625 - just call getTargets or --help.

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