Skip to content

feat: expand rux info command with package metadata and local execution#134

Merged
spatulari merged 2 commits into
rux-lang:devfrom
BibhabenduMukherjee:feat/expand-rux-info
Jun 15, 2026
Merged

feat: expand rux info command with package metadata and local execution#134
spatulari merged 2 commits into
rux-lang:devfrom
BibhabenduMukherjee:feat/expand-rux-info

Conversation

@BibhabenduMukherjee

Copy link
Copy Markdown

Description

This PR expands the capability of the rux info command to support additional package metadata fields, handles reading/writing them to/from Rux.toml, and adds support for running rux info without arguments to describe the local directory's package.

Changes

  1. Manifest Metadata Expansion:

    • Added five optional metadata fields to the Package struct in Manifest.h: description, authors, license, repository, and homepage.
    • Updated Manifest::Load in Manifest.cpp to parse these fields from the [Package] section.
    • Updated Manifest::Save in Manifest.cpp to serialize these fields back to the TOML file if they are populated.
  2. CLI info Local Folder Fallback:

    • Updated Cli::RunInfo in UtilityCmd.cpp so that if no package name argument is passed, it traverses the directories upward to find and load a local Rux.toml manifest.
  3. Output Formatting:

    • Aligned the text output of the metadata fields for clean console presentation.
    • Added serialization support for these fields in --json mode.

Verification & Testing

  1. Local Package Run:
    Run rux info inside a package folder without arguments. It will locate the local manifest and display details.
  2. Metadata Fields:
    Add description, authors, or license fields to a Rux.toml and run:
    rux info
    rux info --json

@pascalecu pascalecu self-requested a review June 11, 2026 10:01

@pascalecu pascalecu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I approve this PR, however right now we're not allowing any more features since we're focusing on bug fixes for the upcoming 0.3.1. I'll merge this next cycle.

@spatulari spatulari merged commit b7b8ead into rux-lang:dev Jun 15, 2026
9 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