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

Document and fix addons setup-cli -f option #200

Open
patryk-kozak opened this issue Jul 20, 2022 · 0 comments
Open

Document and fix addons setup-cli -f option #200

patryk-kozak opened this issue Jul 20, 2022 · 0 comments

Comments

@patryk-kozak
Copy link
Contributor

patryk-kozak commented Jul 20, 2022

There is a possibility to force install plugins without an interactive prompt which is problematic on for example CI.

This -f parameter is undocumented. It would be good to document it to show how this can be leveraged in some cases.

genesis do dev -- setup-cli vs genesis do dev -- setup-cli -f

Also, the setup-cli does not handle the input stream to pass the interactive prompt, so -f is the only option to run it non-interactively.

Any effort to pass answers to interactive prompt fails on the same error:

echo "y" | genesis do dev -- setup-cli
Failed to load /home/ubuntu/deployments/cf/.genesis/config: 
genesis do dev -- setup-cli << A
> y
> A
Failed to load /home/ubuntu/deployments/cf/.genesis/config: 

Code ref:

cmd+=( -f )

@patryk-kozak patryk-kozak changed the title Document addons setup-cli -f Document addons setup-cli -f option Jul 20, 2022
@patryk-kozak patryk-kozak changed the title Document addons setup-cli -f option Document and fix addons setup-cli -f option Jul 20, 2022
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