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

Implement some kind of conditional grouping. #4

Open
kke opened this issue Nov 30, 2016 · 0 comments
Open

Implement some kind of conditional grouping. #4

kke opened this issue Nov 30, 2016 · 0 comments

Comments

@kke
Copy link
Contributor

kke commented Nov 30, 2016

Instead of:

  use_bundled_mysql:
    type: boolean
    default: true
    from:
      prompt: Use bundled mysql?
  bundled_mysql_host:
    only_if: use_bundled_mysql
    type: string
    value: mysql
    to: mysql_host
  bundled_mysql_user:
    only_if: use_bundled_mysql
    type: string
    value: wordpress
    to: mysql_user

Something like:

  use_bundled_mysql:
    type: boolean
    default: true
    from:
      prompt: Use bundled mysql?
    if:
      true:
        mysql_host:
          type: string
          value: mysql
        mysql_user:
          type: string
          value: wordpress
      false:
        mysql_host:
          type: string
          from:
            prompt: Enter MySQL hostname
        mysql_user:
          type: string
          from:
            prompt: Enter MySQL username
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

No branches or pull requests

1 participant