Skip to content

gnd(deploy): Add prompt for missing --version-label#6532

Merged
dimitrovmaksim merged 1 commit intomasterfrom
gnd/deploy-version-label-prompt
Apr 22, 2026
Merged

gnd(deploy): Add prompt for missing --version-label#6532
dimitrovmaksim merged 1 commit intomasterfrom
gnd/deploy-version-label-prompt

Conversation

@dimitrovmaksim
Copy link
Copy Markdown
Member

@dimitrovmaksim dimitrovmaksim commented Apr 21, 2026

What this PR does:

Improves gnd deploy behavior when --version-label is omitted:

  • Prompts the user in interactive(terminal) mode
  • Makes the flag required in non-interactive mode

Design choices:

  • Prompt uses CustomType<String> instead of Text. The reason is the raw value needs to be normalized and then validated.
    Text does not expose a custom parser, so validation happens aginst the raw value, which means we need to normalize the value twice, or add a custom validation/loop to re-prompt on invalid values.

  • Version label is not semver-validated (same as graph-cli).

@dimitrovmaksim dimitrovmaksim requested a review from lutter April 21, 2026 20:31
@dimitrovmaksim dimitrovmaksim self-assigned this Apr 21, 2026
…de. Require the flag in non-interactive.

Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
@dimitrovmaksim dimitrovmaksim force-pushed the gnd/deploy-version-label-prompt branch from 25b8f9a to 68bb8ac Compare April 21, 2026 20:34
@dimitrovmaksim dimitrovmaksim merged commit 68bb8ac into master Apr 22, 2026
6 checks passed
@dimitrovmaksim dimitrovmaksim deleted the gnd/deploy-version-label-prompt branch April 22, 2026 13:48
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.

2 participants