-
Notifications
You must be signed in to change notification settings - Fork 34
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
Possibility to edit proposed run command #6
Comments
What about returning it to stdout so it can be pipe-able to other commands? |
I was more thinking refocus on the prompt with the command open for edition, with a "edit" icon (to make user understand he takes control when he would press would keep UI coherence and minimize the work imo wdyt ? for piping, yai has a bit of support since 0.2.0, for ex:
or
|
In addition to editing the command, you might like also to consider that you might like to add more prompt information so that it provides an updated command with the additional information. In effect |
when pressing |
Yep, that's the idea.
Here's an example of how I saw it being used: 🚀 > port forward port 5433 on my machine to localhost:5432 on the remote machine
forward the local port 5433 to the remote machine port 5432 over ssh confirm execution? [y/e/r/N] The first way to solve this is 🚀 > The user is greg, and the remote host is example.com
forward the local port 5433 to the remote machine port 5432 over ssh. The user is greg and the remote machine is example.com confirm execution? [y/e/r/N] |
looks very good / simple to use ! on it asap |
A cool feature would be to have the possibility to edit a proposed run command, when the user know it's not exactly matching expectations.
Something like changing the confirmation prompt from
Confirm? [y/N]
toConfirm? [y/e/N]
, wheree
would trigger editionThe text was updated successfully, but these errors were encountered: