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

Is there any ways to continue to input options if needed? #14

Open
0x0c opened this issue Jul 18, 2022 · 2 comments
Open

Is there any ways to continue to input options if needed? #14

0x0c opened this issue Jul 18, 2022 · 2 comments

Comments

@0x0c
Copy link

0x0c commented Jul 18, 2022

I want to input some options if I want to input those. Is there any ways to do this?
For example, I want to generate such file if I want to use Firebase.

{% if firebase %}
FIREBASE_APP_ID = '{{ firebase.app_id }}'
FIREBASE_CI_TOKEN = '{{ firebase.ci_token }}'
FIREBASE_APP_DISTRIBUTION_GROUP = '{{ firebase.app_distribution_group }}'
{% endif %}

This feature may be able to be realized as single attempt of array input option, but I couldn't find how to input options only once.

@0x0c 0x0c changed the title Is there any ways to continue to input options if needed. Is there any ways to continue to input options if needed? Jul 18, 2022
@yonaskolb
Copy link
Owner

Hi @0x0c, sorry I'm not sure what you mean. Could you please elaborate?

@0x0c
Copy link
Author

0x0c commented Aug 1, 2022

@yonaskolb Thank you for your reply.

Currently, using array type option allows to input multiple options until I answer no the first question, like this.

flowchart TD
start[Do you want to use Firebase?] --> |"Yes"| B1[Please input your Firebase app id]
B1 --> B2[Please input your Firebase CI Token.]
B2 --> B3[Please input an app distribution group.]
B3 --> start[Do you want to use Firebase?]
start[Do you want to use Firebase?] -->|"No"| C[Done]
Loading

I want to input options only once if I answer yes to first question, like this flowchart. If there is no way to do this, I can make PR.

flowchart TD
start[Do you want to use Firebase?] --> |"Yes"| B1[Please input your Firebase app id]
B1 --> B2[Please input your Firebase CI Token.]
B2 --> B3[Please input an app distribution group.]
B3 --> C
start[Do you want to use Firebase?] -->|"No"| C[Done]
Loading

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

2 participants