-
Notifications
You must be signed in to change notification settings - Fork 46
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
Interaction between CLI and Server #6
Comments
Besides storing personal data, it might make sense to use the Server as a personal cache for data that you use. The CLI setup process could be initiated when a write command We might need a different Storelike implementation for the CLI, since mutations are to be executed somewhere else. |
Relates to authentication #13 |
One of the things that I want to do, is edit some existing field. But what kind of behaviour would make most sense in a CLI setting?
|
Added some cool stuff to the CLI, and hid non-functioning commands that don't interact with server yet:
|
The CLI and Server both use the same
atomic_lib
library. Currently, both even use the same store. Both can write to the local store directly. Since they both require a file lock, this means that you can't run the server and the CLI from the same machine. That makes the CLI pretty much useless.I think the CLI should be a companion tool, which does not use local storage. This means that running the
delta
command, for example, should change deltas on the server. To do this, the CLI should be linked to a specific server. This means the CLI needs some setup and authentication.The Server has no authentication at this point (and no write capabilities at all), but I'm expecting to implement OAuth / OIDC sometime in the future. The CLI might get a token using this process, and store that in the config folder (combined with the server URL) for future use.
The text was updated successfully, but these errors were encountered: