%SYS
PackageManager Class Reference
Inheritance diagram for PackageManager:
Collaboration diagram for PackageManager:

Static Public Member Functions

_.Library.String DrawColumn (desc)
 draw description
 
 GetDefaultCommandRegistry ()
 Get Default Command of Registry. More...
 
_.Library.Status GetListModule (ns, Mod, OnlyName)
 Get module list in currently namespace.
 
 GetListNamespace (list, _.Library.String pSearch)
 Get list Namespace, example do ##(ZPM.PackageManager).GetListNamespace(.ns)
 
 GetVersion (ModuleName, out, list)
 @API.Method More...
 
 PrintTree (pTree)
 Prints a tree with unicode box art. More...
 
_.Library.Status Shell (_.Library.String pCommand, _.Library.Boolean pTerminateOnError, _.Library.Boolean pHaltOnComplete)
 @API.Method
 
 ShellScript (_.Library.String pCommand, _.Library.String pOutputLogFile, _.Library.Boolean pAppendToLog)
 Runs package manager commands in a way that is friendly to the OS-level shell. More...
 
- Static Public Member Functions inherited from CLI
 DrawBorder (_.Library.List pLineList, _.Library.Integer pTextFormat)
 Draw a border around a list of strings. More...
 
_.Library.String FormatName (_.Library.String pName)
 Format the given name such that all punctuation characters are remove and. More...
 
 ParseJsonToCommand (_.Library.DynamicObject pJson)
 Read JSON and construct a command matching the schema in the Commands XData blocks. More...
 

Additional Inherited Members

- Static Public Attributes inherited from CLI
 CommandsAccessorIncludeFilename = None
 Name of include file that will contain accessor macros for modifiers. More...
 
- Static Public Attributes inherited from CLICommands
 CommandsAccessorIncludeFilename = None
 Name of include file that will contain accessor macros for modifiers. More...
 

Member Function Documentation

◆ GetDefaultCommandRegistry()

GetDefaultCommandRegistry ( )
static

Get Default Command of Registry.

example d ##class(ZPM.PackageManager).GetDefaultCommandRegistry()

◆ GetVersion()

GetVersion (   ModuleName,
  out,
  list 
)
static

@API.Method

Get Version modules and current registry example do ##class(ZPM.PackageManager).GetVersion("zpm,zpm-registry",.out,.list)

◆ PrintTree()

PrintTree (   pTree)
static

Prints a tree with unicode box art.

Tree representation should be: pTree(<node no.>) = $listbuild(

, <first child node no.>, <next sibling node no.>) With the first node in node #1 (no root - it can have siblings), and the subscripts are sequential according to pre-order (which is how the tree will be displayed, one node per line).

◆ ShellScript()

ShellScript ( _.Library.String  pCommand,
_.Library.String  pOutputLogFile,
_.Library.Boolean  pAppendToLog 
)
static

Runs package manager commands in a way that is friendly to the OS-level shell.

Creates pOutputLogFile if it does not exist. If it does, and pAppendToLog is true, appends to it; otherwise, deletes the file before outputting to it.