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

Remember last app that was pushed to and warn when using a different one #2238

Open
Hades32 opened this issue Apr 1, 2021 · 0 comments
Open

Comments

@Hades32
Copy link

Hades32 commented Apr 1, 2021

Expected Behavior

~/my-app1 $ balena push my-app1
# pushing...
~/my-app1 $ balena push some other-app
You pushed to "my-app1" before, do you really want to change to "other-app" [y/n] Y
~/my-app1 $ balena push other-app
# pushing...

Motivation

There is currently no way to prevent a user from accidentally pushing to the wrong app. Using Bash auto-complete makes it likely to to hit this.

After we have this we could make it even as easy as doing balena push, omitting the app name the second time

Additional Notes

Discussed in Product Call 2021-04-01: https://jel.ly.fish/359bd49b-d421-4072-a4d8-bff21ccb06eb

.balenarc might be a good place to store this state as it can be added to .gitignore

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

No branches or pull requests

1 participant