Skip to content

Commit

Permalink
Add one line to the history of the IRIS terminal for Linux
Browse files Browse the repository at this point in the history
It is very convenient to insert commands into the iris.script file, for example, to test a module in terminal mode.
  • Loading branch information
SergeyMi37 authored Dec 27, 2023
1 parent a1a5e35 commit c76ec0c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/dc/one/Line.cls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ Include dc.one.Line
Class dc.one.Line
{

/// Add one line to the history of the IRIS terminal for Linux. It is very convenient to insert commands into the iris.script file, for example, to test a module in terminal mode.
/// Samples:
/// if $zf(-1,"echo ':do 1^%SS' >> ~/.iris_history")
ClassMethod Add2History()
{
if $zf(-1,"echo ':zpm ""test my-module""' >> ~/.iris_history")
}


/// Add a one-line Z-command
/// Samples:
/// set line="ZPMN(m="""") new $namespace zpm ""zn ""_m_""*"" quit" do ##class(dc.one.Line).AddLineInZZCommand(line)
Expand Down

0 comments on commit c76ec0c

Please sign in to comment.