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

Support for arbitrary arguments to commands #21

Open
knollpoi opened this issue May 23, 2018 · 1 comment
Open

Support for arbitrary arguments to commands #21

knollpoi opened this issue May 23, 2018 · 1 comment

Comments

@knollpoi
Copy link

It would be nice to be able to allow arbitrary arguments in command sequences. For example for your example Cisco-like CLI...

interface encapsulation dot1ad dot1q

The arbitrary elements could be defined by regex. I'm not sure how iShell's classes would manage this.

If you have suggestions for how to do this, I could try to implement it.

@italorossi
Copy link
Owner

if the arbitrary arguments are at the end of the command it's just a matter of getting the full line at your run function and splitting it.

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