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

Alias execution interactive mode #32

Open
sebglazebrook opened this issue Apr 25, 2017 · 0 comments
Open

Alias execution interactive mode #32

sebglazebrook opened this issue Apr 25, 2017 · 0 comments

Comments

@sebglazebrook
Copy link
Owner

Proposal: Interactive mode when executing an alias

Problem

Depending on how you use aliases things can get quite abstracted.

You can nest aliases, use positional parameters, pass through arguments etc.

An interactive mode would help to break down aliases into each of their steps, with confirmation at each step.

E.g.

Imagine I have an alias:

console

console maps to:

build-container && run-container bundle exec rails console

build-container maps to:

docker build -t my-image .

run-container maps to:

docker run -ti -v ${PWD}:/code my-image

If I want to understand the magic behind the console curtain a user could set:

export ALIASES_INTERACTIVE=true

and then when they run console at each step, before execution the user sees the current stdout and stderr and the proposed command and gets to choose whether they want to continue or not.

This proposed command will include any positional params or arguments included, so basically if the user copied it and run it in another shell it would work.

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