-
Notifications
You must be signed in to change notification settings - Fork 425
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
Clean running examples! #223
Comments
Good point. The manual contains mostly snippets to illustrate a point very briefly. If you have ideas for additional full examples that’d be great. They need to be fairly short though, about 20-25 lines of code or less. |
Where should they go to? I think I could vamp up a few simple examples on the spot for at least basic usage. Ideally, they could be self-contained, runnable example files, like |
One possibility would be to have an Maybe a much simpler way would be to just make another GitHub repo: e.g. dependencies {
compile 'info.picocli:picocli:2.0.1'
compile 'org.fusesource.jansi:jansi:1.16'
} in
Yes, but each example in it's own sub-directory? This way best practices could be better demonstrated (e.g. even if one example requires more than one file) |
I'd prefer to keep the examples in the same repo. I'm open to other ideas but I was thinking to add an Something like:
|
I'd also opt for the same repository. On a similar note, I wouldn't put the examples into the test directory, because, at least for me, I'd only expect "automated" tests in there not some form of documentation. Maybe |
Yes that would work. Would be cleaner but just need to work out how the gradle build needs to change. Should be doable...
|
Or we can have a separate module (in the same repo):
|
Either way sounds good to me, whatever is easier for you to manage (I'm not really into gradle). |
Hi,
Would be nice to have some clean and running examples.
The existing ones seem "overloaded" and and mixed with unit tests :( .
Thank you.
The text was updated successfully, but these errors were encountered: