-
-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Reason/Context
We need to progress on the next version of CLI and improve some stuff regarding the watcher behavior.
The primary goal is to be able to launch the watcher from the command line, using the same binary.
Description
I checked the import command and saw there's already a --watch flag. At first, I thought it was the right place to launch the watcher but I saw that this just updates the watcher configuration file.
I wonder:
- Should we keep that this way and have another command like
microcks watchthat starts the watcher in the foreground until we Ctrl+C it ? - Should we just launch the watcher on presence of this flag in the
microcks importcommand (here again, waiting for the Ctrl+C signal)
Also, I saw that each entry in the watcher configuration file has a list of contexts attached. Launching the watcher externally (as a separate command) means that without context, the watcher cannot find the correct Microcks instance to push local changes to...
Maybe then: we should be able to handle both case? Launching the watcher with the import - in that case, it reuses the current context + launching the watcher independently - in that case, it uses the context configured in the wath config file.
What do you think @Harsh4902?
Implementation ideas
No response