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

Subshell or previous context save #141

Open
vit1251 opened this issue Jun 21, 2021 · 1 comment
Open

Subshell or previous context save #141

vit1251 opened this issue Jun 21, 2021 · 1 comment

Comments

@vit1251
Copy link

vit1251 commented Jun 21, 2021

Example usage:

>>> show
show>>> tables
show / tables >>> ..
show >>> ..
>>> quit
@mike-pittelko
Copy link

mike-pittelko commented Sep 1, 2021

I'd like to be able to do this as well. if entering a subcommand leave the context there, don't return to the top level context. I suspect this needs to be a new AddCmdFolder or a flag in the cmdcontext marking this as desirable behaviour to keep from breaking the existing behaviour.

 >>> help
 a
 b
 c
 >>> a
 does "a" something
 >>> c
 changes context and stays in "c". Prompt preceded by name of current context.
 c >>>  help
 d
 e
 ..
 c >>> e
 does "e" something, does not execute a + e Func, only "e" func.
 c >>>  ..
 >>> help
 a
 b
 c

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