Update JS files for the libraries
Developers can update the js files using these command in the repo:
rake library_name:update
e.g. rake highcharts:update
To update all the JS files : rake update_all
But how user will update it (who have installed the gem from the source or using gem install) ?
Probably we can have CLI and using command daur-view update_js library_name user can update the particular js . I like the way Thor gem works. But there is some other good Command Line Interface Gems as well.
I think we should use ARGV because the gem is less likely to get CLI intensive in future. WDYT?
ping! @Shekharrajak I would like to take up this issue
@rohitner , sorry for late response! Yes , we didn't think much about CLI in daru-view. But to update the js files, calling method don't look a good choice to me. I am not sure about it. Can you light more on your idea?
@zverok , what do you think?
@rohitner , meanwhile you can open PR with your idea.
We can also make use of optparse module like that being done by the gem colorls (although Thor has advantages like seperate parsers for different commands). I think OptionParse class will be most appropriate at this point.
@rohitner
I think we should use ARGV because the gem is less likely to get CLI intensive in future.
I am not sure what do you mean, can you please elaborate?
I mean to say that using pre-installed modules like optparse are enough for supporting a few command line arguments rather than adding third-party dependencies like Thor.
Pending work after PR #83
https://github.com/SciRuby/daru-view/pull/83#issuecomment-394606927