Skip to content

feat(secret flag) add reusable secret flag implementation, update guide#1366

Open
cgoetz-inovex wants to merge 1 commit intofeat/STACKITCLI-318_secret-flagsfrom
feat/STACKITCLI-318_secret-flags-2
Open

feat(secret flag) add reusable secret flag implementation, update guide#1366
cgoetz-inovex wants to merge 1 commit intofeat/STACKITCLI-318_secret-flagsfrom
feat/STACKITCLI-318_secret-flags-2

Conversation

@cgoetz-inovex
Copy link
Copy Markdown
Contributor

Had to split implementation into two parts: Set() and SecretFlagToSP. Set is only called when an argument is specified on the command line. So moving the PromptForPassword logic into Set does not work.

I'm not sure if the current solution with a specialized *ToStringPointer func is the way to go. So I've only refactored obs-credentials add as an example.

Description

relates to #1234

Checklist

  • Issue was linked above
  • Code format was applied: make fmt
  • Examples were added / adjusted (see e.g. here)
  • Docs are up-to-date: make generate-docs (will be checked by CI)
  • Unit tests got implemented or updated
  • Unit tests are passing: make test (will be checked by CI)
  • No linter issues: make lint (will be checked by CI)

Had to split implementation into two parts: `Set()` and `SecretFlagToSP`.
Set is only called when an argument is specified on the command line.
So moving the `PromptForPassword` logic into `Set` does not work.

I'm not sure if the current solution with a specialized `*ToStringPointer`
func is the way to go. So I've only refactored `obs-credentials add`
as an example.
@cgoetz-inovex cgoetz-inovex requested a review from a team as a code owner April 14, 2026 13:39
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.

1 participant