Skip to content

Add version flag to CLI #129

@ghanshyam2005singh

Description

@ghanshyam2005singh
  • Rationale: Users expect kubectl a2a --version.
  • Scope: Add @click.version_option() with fallback for editable installs.
  • Files: src/cli.py
  • Tasks:
    • Import importlib.metadata and wire version("kubestellar").
    • Gracefully fall back to "dev" when metadata absent.
    • Add unit test via Click CliRunner.
  • Done: kubectl a2a --version prints semantic version; tests pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliIssues or PRs related to CLI changeshelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions