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

state management #154

Open
dfa1 opened this issue Nov 19, 2019 · 2 comments
Open

state management #154

dfa1 opened this issue Nov 19, 2019 · 2 comments
Labels
help wanted open problem waiting for help/discussion incomplete further information is required before starting implementation

Comments

@dfa1
Copy link
Collaborator

dfa1 commented Nov 19, 2019

Problem
The intent is to try to unify:

  • changes to the PATH
  • pushd/popd to save/restore directories
  • .envfiles to save/restore variables
    In hosh everything is stored inside a State object, that is injected to every command to provide
    current working directory, variables, etc.

Solution
Let's take inspiration by nushell for enter/leave and p/n.

Benefit
Still unclear to me.

@dfa1 dfa1 self-assigned this Nov 19, 2019
@dfa1 dfa1 added help wanted open problem waiting for help/discussion incomplete further information is required before starting implementation labels Nov 19, 2019
@dfa1 dfa1 removed their assignment Feb 20, 2020
@dfa1
Copy link
Collaborator Author

dfa1 commented Jun 1, 2020

probably should be designed together with #264

@dfa1
Copy link
Collaborator Author

dfa1 commented Jun 14, 2020

and with #273

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted open problem waiting for help/discussion incomplete further information is required before starting implementation
Projects
None yet
Development

No branches or pull requests

1 participant