Skip to content

Commit

Permalink
Merge pull request #14 from SergeyMi37/master
Browse files Browse the repository at this point in the history
Add one line to the history of the IRIS terminal for Linux
  • Loading branch information
evshvarov authored Mar 12, 2024
2 parents a1a5e35 + c76ec0c commit 7e58e2c
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 7e58e2c

Please sign in to comment.