oxidecomputer / oxidecomputer/oxide.rs

Distinguish meta CLI commands like `version` and `completion` in docs site

Open
#594 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Rust
Stars
75
Forks
21
Avg merge
2d 2h
Merged PRs (30d)
19

Description

Target component
  • CLI
  • SDK
  • Something else
  • Not sure
Overview

It would be nice to put information in the CLI docs JSON to allow the docs site to distinguish between commands like completion and version (possibly auth? meh, nah) and the rest, which have to do with actual API resources.

image
Implementation details

Two ideas:

  • Give tags to top-level CLI commands to allow grouping in docs site sidebar, like we do with the API endpoints. In the API, endpoints with a tag starting with system/ get grouped under System and the rest go under Developer.
  • Don't do formal grouping or tagging, but put completions and version under a top-level oxide self command so they at least take up less space and it's easier to tell they don't have anything to do with the API itself.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the CLI docs JSON and the docs site sidebar, then inspect how API endpoint tags are currently grouped, including the system/ convention. Compare the two proposed approaches for distinguishing completion, version, and possibly auth; done means the chosen organization is represented consistently in the CLI documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, documentation
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.