Skip to content

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

Description

@patryk-kozak

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 )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions