Skip to content

[FEAT cloudctl] - Add prompt command for shell prompt integration #78

Description

@onuryilmaz

User Story

As a cloudctl user, I want to display my active context and namespace in my shell prompt, so I always know which cluster I am targeting.

Description

cloudctl prompt [--no-color] prints [context|namespace] with color coding for use in PS1/PROMPT: bold green for QA contexts (containing qa-), bold white on red background for production. --no-color disables ANSI codes for scripting.

Acceptance Criteria

  • Prints [context|namespace] to stdout
  • QA contexts (containing qa-) rendered in bold green
  • Non-QA contexts rendered in bold white on red background
  • --no-color flag disables all ANSI color codes

Reference Issues

Epic: #70

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogReady for sprint planning; triggers project additioneasy-to-useImprovements to User Experience (UX), CLI ergonomics, and simplicityfeatureNew functional capabilities or significant additions to the CLI.good first issueGood for newcomers

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions