Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show enum values when prompted for a variable value in terminal #941

Open
cbruno10 opened this issue Oct 16, 2024 · 1 comment
Open

Show enum values when prompted for a variable value in terminal #941

cbruno10 opened this issue Oct 16, 2024 · 1 comment
Labels
enhancement New feature or request stale

Comments

@cbruno10
Copy link
Contributor

Is your feature request related to a problem? Please describe.
If I have a var with enum set with no default value and I run flowpipe server (or flowpipe pipeline run), should I be shown the possible values? Currently it’s not showing anything extra:

cbruno@M1P awscompliance % flowpipe server
{"time":"2024-10-16T01:54:43.272274-04:00","level":"ERROR","msg":"Error loading input variables","error":"missing 1 variable value:\n\tcis_v300_2_enabled_pipelines not set\n"}

Variables defined with no value set.
var.cis_v300_2_enabled_pipelines
  List of CIS v3.0.0 section 2 pipelines to enable.

  Enter a value:

Var definition:

variable "cis_v300_2_enabled_pipelines" {
  type        = list(string)
  description = "List of CIS v3.0.0 section 2 pipelines to enable."

  /*
  default = [
    #"cis_v300_2_1_1",
    #"cis_v300_2_1_2",
    #"cis_v300_2_1_3",
    #"cis_v300_2_1_4",
    "cis_v300_2_2_1",
    #"cis_v300_2_3_1",
    #"cis_v300_2_3_2",
    #"cis_v300_2_3_3",
    #"cis_v300_2_4_1"
  ]
  */

  enum = [
    "cis_v300_2_1_1",
    "cis_v300_2_1_2",
    "cis_v300_2_1_3",
    "cis_v300_2_1_4",
    "cis_v300_2_2_1",
    "cis_v300_2_3_1",
    "cis_v300_2_3_2",
    "cis_v300_2_3_3",
    "cis_v300_2_4_1"
  ]
}

Describe the solution you'd like
Show enum values

Describe alternatives you've considered
Look at var definition

Additional context
Add any other context or screenshots about the feature request here.

@cbruno10 cbruno10 added the enhancement New feature or request label Oct 16, 2024
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the stale label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant