mlhubber / mlhub

Machine Learning Model Repository Hub Command Line Tool.
MIT License
20 stars 12 forks source link

Add a new STATUS command #210

Open gjwgit opened 3 years ago

gjwgit commented 3 years ago

Something like this for a package:

$ ml status azspeech
azspeech,20201210,1.2.3,20210422,2.3.4,34234167,1454654

$ ml status --header azspeech
package,date_installed,version_installed,date_latest_version,latest_version,install_size,cache_size
azspeech,20201210,1.2.3,20210422,2.3.4,34234167,1454654

$ ml status --header azspeech | mlr --icsv --opprint --barred cat
+----------+----------------+-------------------+---------------------+----------------+--------------+------------+
| package  | date_installed | version_installed | date_latest_version | latest_version | install_size | cache_size |
+----------+----------------+-------------------+---------------------+----------------+--------------+------------+
| azspeech | 20201210       | 1.2.3             | 20210422            | 2.3.4          | 34234167     | 1454654    |
+----------+----------------+-------------------+---------------------+----------------+--------------+------------+

Any number of packages can be listed, including wildcards or or the special name 'mlhub', and if none are provided, all installed packages are listed, including mlhub.

gjwgit commented 3 years ago

Probably either replace INSTALLED, or implement this as INSTALLED.