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

fix: allow lower level subcommands #439

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

TerryHowe
Copy link
Member

The current command document generator only does two levels of commands. The introduction of oras manifest index create is three levels. While this PR is a bit tough to look at, the actual code is a lot easier to look at.

  • Broke out list_command.sh into a shell script that can be run and tested by itself for example ./tools/list_command manifest index
  • Simplified the path to the current oras command so it doesn't need to be passed around
  • Simplified temp file handling
  • Created subcommands.sh that either prints the command or iterates through the subcommands which can be run for example ./tools/subcommands.sh manifest ./versioned_docs/version-1.3.0-beta.1/commands

Copy link
Member

@FeynmanZhou FeynmanZhou left a comment

Choose a reason for hiding this comment

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

LGTM. It does solve the issue. Now the subcommand pages in v1.3.0-beta.1 can be displayed:

Copy link
Contributor

@shizhMSFT shizhMSFT left a comment

Choose a reason for hiding this comment

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

LGTM

@TerryHowe TerryHowe merged commit 949dbdf into oras-project:main Dec 16, 2024
7 checks passed
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