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

Lagoon shell #235

Open
tnelson-doghouse opened this issue Jul 27, 2022 · 2 comments
Open

Lagoon shell #235

tnelson-doghouse opened this issue Jul 27, 2022 · 2 comments

Comments

@tnelson-doghouse
Copy link

Is your feature request related to a problem? Please describe.
Having to type lagoon --project really-long-project-name --environment also-really-long-environment-name gets old.

Describe the solution you'd like
A REPL shell for Lagoon that stores some context (and shows it in the prompt). Context might include:

  • $LAGOON_PROJECT
  • $LAGOON_ENVIRONMENT
  • An object type

This would mean that if your prompt said really-long-project-name also-really-long-environment-name variables that you could just write "list", and it would list the variables, and then "add", and it would add a variable to that project/environment.

Describe alternatives you've considered

  • Making my bash prompt pick up on some $LAGOON_PROJECT/$LAGOON_ENVIRONMENT variables.
  • Having Lagoon pick up on some predefined $LAGOON_PROJECT/$LAGOON_ENVIRONMENT variables. This would also be good to have (whether the suggestion above gets implemented or not).
@shreddedbacon
Copy link
Member

Having Lagoon pick up on some predefined $LAGOON_PROJECT/$LAGOON_ENVIRONMENT variables. This would also be good to have (whether the suggestion above gets implemented or not).

This will be easy enough to support

The full blown shell/prompt thing, probably unlikely to build this functionality. The direction of the CLI is to be more like kubectl. You could accomplish something similar using bash aliases and your own PS1 if you wanted this sort of functionality.

@tnelson-doghouse
Copy link
Author

Wanted to add to this that I'd also like to pick up on LAGOON_ORGANIZATION.

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