juruen / rmapi

Go app that allows you to access your reMarkable tablet files through the Cloud API
GNU Affero General Public License v3.0
976 stars 106 forks source link

On-demand "context" initialization #248

Open indeyets opened 2 years ago

indeyets commented 2 years ago

Some commands do not need full initialization of context and could run/return instantly.

rmapi version is an obvious example. rmapi help is another one

is it possible to delay initialization of context until some command really needs it? I wonder id command-initialization could give provide this information to the core.

Interactive shell could do such initialization in background thread and commands which require context would wait for it to finish, while simple commands would run instantly

lapwat commented 2 years ago

Is it possible to skip Refreshing Tree step when doing rmapi put ?

ddvk commented 2 years ago

nope, can't be skipped, the tree has to match