DevonianTeuchter / meta

Meta repository to tie together the various underlying z/OS Open Source tools repositories here
https://zosopentools.github.io/meta/
Apache License 2.0
2 stars 0 forks source link

Provide consistent fields for the 'zopen list' options #41

Open MikeFultonDev opened 1 year ago

MikeFultonDev commented 1 year ago

On my system:

FULTONM@ZOSCAN2B bash ~> zopen list --upgradeable
Package                                Your version                           .version                               Latest Tag
bash                                   5.2.15.20230705_105809                 5.2.15                                 stable
curl                                   8.1.2.20230707_145137                  8.1.2                                  stable
git                                    2.41.0.20230721_160408                 2.41.0                                 stable
groff                                  1.22.4.20230622_204353                 1.22.4.20230622_204353                 stable
jq                                     1.6.20230720_160648                    1.6                                    stable
less                                   632.20230705_153450                    632                                    stable
libiconv                               master.20230801_133642                 1.17                                   stable
man-db                                 2.11.2.20230627_230209                 2.11.2                                 stable
ncurses                                6.3.20230705_122326                    6.3                                    stable
perl                                   blead.20230605_161457                  blead.20230605_161457                  stable
vim                                    master.20230707_142419                 9.0.1673                               stable
FULTONM@ZOSCAN2B bash ~> zopen list --installed
Package                                             Installed version                                   File version
bash-5.2.15.20230705_105809.zos                     5.2.15                                              bash-5.2.15.20230705_105809.zos
curl-8.1.2.20230707_145137.zos                      8.1.2                                               curl-8.1.2.20230707_145137.zos
git-2.41.0.20230721_160408.zos                      2.41.0                                              git-2.41.0.20230721_160408.zos
groff-1.22.4.20230622_204353.zos                    1.22.4.20230622_204353                              groff-1.22.4.20230622_204353.zos
jq-1.6.20230720_160648.zos                          1.6                                                 jq-1.6.20230720_160648.zos
less-632.20230705_153450.zos                        632                                                 less-632.20230705_153450.zos
libiconv-master.20230801_133642.zos                 1.17                                                libiconv-master.20230801_133642.zos
man-db-2.11.2.20230627_230209.zos                   2.11.2                                              man-db-2.11.2.20230627_230209.zos
meta-dt                                             0.3.0-dt-stable                                     meta-dt
ncurses-6.3.20230705_122326.zos                     6.3                                                 ncurses-6.3.20230705_122326.zos
perl5-blead.20230605_161457.zos                     blead.20230605_161457                               perl5-blead.20230605_161457.zos
vim-master.20230707_142419.zos                      9.0.1673                                            vim-master.20230707_142419.zos

It would be nice to have common names and values for the different fields. I personally like a simple package name, e.g. bash vs bash-5.2.15.20230705_105809.zos since the other information is in the other fields.

It would be nice to have common titles for the fields that are similar, so 'Installed Version' and 'Your version' I believe are the same thing, and should be the same format. I personally like a simple version name, e.g. 5.2.15 vs 5.2.15.20230705_105809.

I am not sure what the lists would look like if you had both stable and dev releases - should the zopen list --installed also have the 'tag' column to indicate what type of build it is?

Should the column for 'Latest tag' perhaps just be 'Tag'? I'm expecting if I had 'dev' and 'stable' both installed that I would get two entries for zopen list --upgradeable since I could choose which (or possibly both) that I wanted to upgrade?

Perhaps separate issue, but is the 'blead' in the perl version information really a tag? I don't see 'master' for example in 'vim' or 'libiconv'

DevonianTeuchter commented 1 year ago

Latest PR into main has changed some of the output formatting so headers should be a bit more consistent and/or meaningful

IgorTodorovskiIBM commented 1 year ago

Looks more consistent now:

[ITODORO@ZOSCAN2B ~/projects/meta_russell]$ zopen list --upgradeable
Package                             Installed                           Available                           Latest Tag
bash                                5.2.15.20230705_105809              5.2.15                              stable
bison                               3.8.2.20230616_161334               3.8.2                               Releaseline_bisonport_1083
c3270                               c3270.20230808_105201.zos.pax.Z     1.0.0                               STABLE_c3270port_1194
[ITODORO@ZOSCAN2B ~/projects/meta_russell]$ zopen list --upgradeable --details
Package                 Installed               Latest Tag              Download Size           Expanded Size           Quality
bash                    5.2.15.20230705_105809  stable                   5838336                 15175185               \047[34m80%
bison                   3.8.2.20230616_161334   Releaseline_bisonport_1083  2806272                 5399671                \047[34m99%
[ITODORO@ZOSCAN2B ~/projects/meta_russell]$ zopen list --installed
Package                             Installed                           File                                Releaseline
bash                                5.2.15                              bash-5.2.15.20230705_105809.zos     n/a
bison                               3.8.2                               bison-3.8.2.20230616_161334.zos     n/a
c3270                               1.0.0                               c3270.20230808_105201.zos           n/a
coreutils                           9.1.20230605_175907                 coreutils-9.1.20230605_175907.zos   n/a
cscope                              15.9.20230720_121442                cscope-15.9.20230720_121442.zos     n/a
ctags                               5.8.20230720_122620                 ctags-5.8.20230720_122620.zos       n/a

Should File be Dir or path?