microcks-cli
microcks-cli copied to clipboard
Add support for `watch` flag in `import` command
Reason/Context
- We can extend the functionality of
importcommand by adding--watchflag. - It allows users to create importer job for local files from CLI.
Description
-
We had a use case suggest by @driccio, that Microcks should allow users to create an importer job for local files as well here.
-
In
microcks-cliwe can easily add--watchflag which tells CLI to keep watch on a particular file which is imported to Microcks usingimportcommand. And on change event it will be automatically re-imported by CLI. -
For example:
import samples/weather-forecast-openapi.yml --watch
Implementation ideas
See https://medium.com/@skdomino/watch-this-file-watching-in-go-5b5a247cf71f for inspiration on how to do this.