%ZHSLIB.PackageManager
class %ZHSLIB.PackageManager extends %ZHSLIB.PackageManager.Developer.CLI
Method Inventory (Including Private)
- AccumulateTreeRecursive()
- Arrange()
- Import()
- ListDependents()
- ListInstalled()
- ListOrphans()
- PrintTree()
- Shell()
- ShellScript()
- ShowModulesForRepository()
- UpdateLanguageExtensions()
- Version()
Parameters
parameter DOMAIN = HSPM;
Methods (Including Private)
private classmethod AccumulateTreeRecursive(pModName As %String, ByRef pModMap, ByRef pTree, pLevel As %Integer = 0) [ Language = objectscript ]
private classmethod Arrange(ByRef pCommandInfo) [ Language = objectscript ]
classmethod Import(ByRef pCommandInfo) [ Language = objectscript ]
private classmethod ListDependents(ByRef pCommandInfo) [ Language = objectscript ]
private classmethod ListInstalled(ByRef pCommandInfo) [ Language = objectscript ]
private classmethod ListOrphans(ByRef pCommandInfo) [ Language = objectscript ]
classmethod PrintTree(ByRef pTree) [ Language = objectscript ]
Prints a tree with unicode box art
Tree representation should be:
pTree() = $listbuild(, , )
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).
@API.Method
classmethod ShellScript(pCommand As %String, pOutputLogFile As %String = "", pAppendToLog As %Boolean = 0) [ Language = objectscript ]
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.
private classmethod ShowModulesForRepository(pRepoName As %String) [ Language = objectscript ]
classmethod UpdateLanguageExtensions(pVerbose As %Boolean = 0, pTestOnly As %Boolean = 0, Output pFound As %Boolean = 0) as %Status [ Language = objectscript ]
classmethod Version(pModuleName As %String, pNamespace As %String = $Namespace) as %String [ Language = objectscript ]
@API.Method
Queries
query ActiveNamespaces()
SQL Query:
select Nsp,Nsp from %SYS.Namespace_List(0,0) where Status = 1
select Nsp,Nsp from %SYS.Namespace_List(0,0) where Status = 1
query SourceControlClasses()