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

man: Shift examples from the README to man pages #142

Closed
wants to merge 2 commits into from

Conversation

wking
Copy link
Contributor

@wking wking commented Jul 22, 2016

If the examples are worth documenting, they're worth putting in the man
pages where users who install (but don't develop) ocitools can find them.

Also update the validation example to catch up with recent changes, and add
a --host-specific example to advertize that feature (since folks skimming
the man page quickly might expect the bare 'ocitools validate' to be
host-specific).

Also change #$ in the generate man page to show where you're
likely to need elevated permissions (you don't for generate calls).

You can call 'ocitools generate ...' without elevated permissions.

Signed-off-by: W. Trevor King <wking@tremily.us>
If the examples are worth documenting, they're worth putting in the
man pages where users who install (but don't develop) ocitools can
find them.

Also update the validation example to catch up with recent changes,
and add a --host-specific example to advertize that feature (since
folks skimming the man page quickly might expect the bare 'ocitools
validate' to be host-specific).

Signed-off-by: W. Trevor King <wking@tremily.us>
$ ocitools generate
$ ocitools validate
INFO[0000] Bundle validation succeeded.
```

## Testing OCI runtimes
Copy link
Member

@runcom runcom Jul 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this example is here? shouldn't it go the man page as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the question is: shouldn't testruntime.sh be a part of ocitools?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Fri, Jul 22, 2016 at 09:43:41AM -0700, Antonio Murdaca wrote:

Testing OCI runtimes

I guess the question is: shouldn't testruntime.sh be a part of ocitools?

Yes, but it's hard to do right ;). See discussion in #61 and #98 (I'm
partial to 1 ;).

@Mashimiao
Copy link

We should have examples in man pages, but I think should also leave examples in README.

@wking
Copy link
Contributor Author

wking commented Feb 14, 2017 via email

@Mashimiao
Copy link

DRY is good but not required. I think by now it more important to let users know how to use runtime-tools easily, just by README.md.
Maybe reopen this PR is necessary in the future.

@Mashimiao Mashimiao closed this Nov 30, 2017
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

Successfully merging this pull request may close these issues.

3 participants