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

Watchman #2

Open
YashKumarVerma opened this issue Sep 21, 2020 · 1 comment
Open

Watchman #2

YashKumarVerma opened this issue Sep 21, 2020 · 1 comment
Assignees

Comments

@YashKumarVerma
Copy link
Owner

This module has the following features. All commands are executed pass through the watcher.

Flow

user -> opens utility -> enters command -> command goes to watcher -> watcher adds entry to logs -> executes -> shows output to user

Watcher is responsible for commands which user enters to access our features. For example, user enters the following commands and all this happens.

ls
# system command runs, returns output

mkdir dir1
# directory created

:checkpoint create
# this would  invoke an internal function (watcher does this, just calling that function) which in turn does whats' required. For instance, in this example, it creates a checkpoint in the system timeline.

:checkpoint revert
# this would take system to last known checkpoint

Note that the commands that the watcher identifies would be provided as a Array, and the implementation of such commands is not part of watcher. Watcher only calls the functions responsible for the actions.

@yashkumarverma-assistant
Copy link

Thanks @YashKumarVerma, for raising the issue! 🙌
One of our team mates will revert on this soon. ✅

@mdhishaamakhtar mdhishaamakhtar self-assigned this Sep 22, 2020
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