open-component-model / ocm-project

OCM Project Backlog
Apache License 2.0
0 stars 0 forks source link

EPIC: Improve End User documentation for OCM CLI #119

Open robertwol opened 1 year ago

robertwol commented 1 year ago

Description:

As an end user of the OCM CLI, I want the documentation to be clear, concise, and user-friendly, providing a comprehensive understanding of OCM-related terms and concepts. The documentation should include concrete examples and avoid excessive complexity to help users grasp the core concepts easily. Avoid academic language and focus on clarity

The documentation should be accessible in different ways and formats:

  1. Help text provided when executing ocm |<verb>|<object> --help.

    • should follow best-practices from other CLIs, like kubectl or helm
    • should only contain
    • rough, but enough (!!!) description
    • examples
    • available (sub-) commands
    • flags
    • extensive and lengthy text must be avoided
  2. Help text provided in form of a man page. The current CLI reference documentation available using ocm --help (which is the same as used on the web page: https://ocm.software/docs/cli-reference/) comes from https://github.com/open-component-model/ocm/tree/main/docs/reference. From a content perspective this is basically what should go into a manpage.

  1. Documentation on the web page.
    • should explain the usage of the OCM CLI with real-life examples, covering the most basic commands in an end-2-end scenario
    • create ctf
    • add cv to rtf
    • get cv
    • transfer cv
    • download resources from cv

Definition of Done:

morri-son commented 3 weeks ago

https://carlosbecker.com/posts/golang-completions-cobra/ for the creation of manpages using mango and cobra: