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

Feature request: Add pull-code, pull-db and pull-files commands for the Pantheon recipe #1287

Closed
uberhacker opened this issue Nov 8, 2018 · 5 comments

Comments

@uberhacker
Copy link
Contributor

Can something like the following eventually become standard in every Pantheon recipe?

tooling:
  pull-code:
    service: appserver
    cmd: '/helpers/pull.sh --code=dev --database=none --files=none'
  pull-db:
    service: appserver
    cmd: '/helpers/pull.sh --code=none --database=dev --files=none'
  pull-files:
    service: appserver
    cmd: '/helpers/pull.sh --code=none --database=none --files=dev'
@uberhacker
Copy link
Contributor Author

I imagine you could also add an argument for the environment. Something like: lando pull-db live.

@ccharlton
Copy link
Contributor

I'm a big fan of convenient aliases, but how are these different from just running lando pull --code=none --database=live --files=none, besides being slightly shorter? I do think a simple alias for pulling DB vs files is useful, but running lando pull is the shortest command to run across the board -- if we're going for short command length.

How/What else can these alias additions [do to] improve our experience?

@uberhacker
Copy link
Contributor Author

@ccharlton: It's all about convenience and less typing. I don't know about you but I have trouble remembering all the switch options and typing all that out to download just the database is a bit painful. You can also just run lando pull and go through all the prompts but I find myself hitting the arrow key a ton to find the options I need. With all that said, I actually find it "easier" and definitely "faster" to simply download the database backup from the Pantheon dashboard and then run lando db-import <backup...> to upload into Lando. All these ways definitely need tweaked to improve the user experience.

@ccharlton
Copy link
Contributor

Sounds like a Lando plugin! 💃

@pirog
Copy link
Sponsor Member

pirog commented Jan 13, 2019

@uberhacker i think what you want to do is exactly what you did in the opening comment here eg just define them yourself in tooling

@pirog pirog closed this as completed Jan 13, 2019
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

3 participants