Article
Robert Cemper · Jul 27, 2020 3m read

ZPMshow - a helper for tired fingers

This is a coding example working on IRIS 2020.2 
It will not be kept in sync with new versions 
It is also NOT serviced by InterSystems Support !

A helper to List, Install, Uninstall ZPM packages

The offer of ZPM is growing daily and the short names and
acronyms of the offer are sometimes hard to understand and
also hard to type with my lazy fingers.

Video
So I decided to have

  • a listing with the descriptions from repository,
  • splitted in short junks to avoid backscroll,
  • controlled forward / backward scrolling,
  • the option to select my packages  by number,
  • to install or uninstall with limited typing.

It runs with do ^zpmshow

A snapshot from the screen:

USER>d ^zpmshow

  1  analyzethis                       1.1.4   -- not github --
  2  apps.rest                         1.0.0   -- no descripition --
  3  bitmap-adoption                   1.0.3  Bitmaps for nonstandard IDs
  4  blocksexplorer                    2.2.1   -- not github --
  5  bondar-nav                        1.0.1   -- no descripition --
  6  cache-fast-json                   1.0.3  produce pretty JSON output for
                                              Cache + Ensemble
  7  classexplorer                     1.21.3  -- no description --
  8  contest-rest-template             1.0.3   -- no description --
  9  csvgen                            1.1.6   -- no description --
 10  declarative-os                    1.0.2   -- no description --
 11  delete-helper                     1.0.1   -- no description --
 12  document-template                 1.0.0   -- not github --
 13  dsw                               2.1.51  -- no description --
 14  ecp-job                           1.0.1  Multi-Line in Terminal Command
 15  excel-light                       1.0.0  Light weight Excel download

action (i[nstall),u[ninstall],n[ext],b[ack],q[uit]): i  package number: 6
  6  cache-fast-json                   1.0.3  produce pretty JSON output for
                                              Cache + Ensemble
   OK (y,n): y
zpm install cache-fast-json

[cache-fast-json]       Reload START
[cache-fast-json]       Reload SUCCESS
[cache-fast-json]       Module object refreshed.
[cache-fast-json]       Validate START
[cache-fast-json]       Validate SUCCESS
[cache-fast-json]       Compile START
[cache-fast-json]       Compile SUCCESS
[cache-fast-json]       Activate START
[cache-fast-json]       Configure START
[cache-fast-json]       Configure SUCCESS
[cache-fast-json]       Activate SUCCESS

  1  analyzethis                       1.1.4   -- not github --
  2  apps.rest                         1.0.0   -- no description --
  3  bitmap-adoption                   1.0.3  Bitmaps for nonstandard IDs
  4  blocksexplorer                    2.2.1   -- not github --
  5  bondar-nav                        1.0.1   -- no description --
  6  cache-fast-json                   1.0.3  produce pretty JSON output for
                                              Cache + Ensemble
  7  classexplorer                     1.21.3  -- no description --
  8  contest-rest-template             1.0.3   -- no description --
  9  csvgen                            1.1.6   -- no description --
 10  declarative-os                    1.0.2   -- no description --
 11  delete-helper                     1.0.1   -- no description --

80
0 0 4 189

Replies

I really liked your application, it's so helpful. Thanks, Robert wink

Thanks, Robert!

The app is so cool that @Sergey Mikhailenko pull-requested description support to ZPM:

Node: a6c652624fe3, Instance: IRIS

IRISAPP>zpm
zpm: IRISAPP>find -d  
registry https://pm.community.intersystems.com:
analyzethis                       1.1.4
apps.rest                         1.0.1
apptools-admin                    1.0.23Description: Application tools for 
                                        technical support and DBMS 
                                        administrator.View and edit arrays, 
                                        execute queries, including JDBC/ODBC, 
                                        sending results to email as XLS files 
apptools-task                     1.0.15Description: An example of a backup task 
                                        with preliminary deletion of old files 
apptools-util                     1.0.0 Description: Utilities for generating a 
                                        XLS file, adapting for IRIS and working 
                                        with modules ZPM 
bitmap-adoption                   1.0.3
blocksexplorer                    2.2.1
bondar-nav                        1.0.1
cache-fast-json                   1.0.8
classexplorer                     1.21.4Description: UML Class Diagram Builder 
                                        for InterSystems Data Platforms 
collection-index-and-query        1.0.0
contest-rest-template             1.0.3
csvgen                            1.1.10Description: Module to generate and 
                                        import csv data using InterSystems 
                                        ObjectScript 
csvgen-ui                         1.0.2 Description: An angular frontend for 
                                        Csvgen app. 
declarative-os                    1.0.2

....

 

2All: you can add the description of your module with tag:<Description> and i will be available for search -d.

Example in ZPM docs.