You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api_reference.php
+19-20Lines changed: 19 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -122,7 +122,7 @@
122
122
}, { prompt: '>', name: 'test' });
123
123
</pre>
124
124
125
-
<img src='images/Screenshot_138.png'/>
125
+
<img src="images/screenshot_001.png"/>
126
126
127
127
<p>You can pass object as first argument - the methods will be invoked by commands typed by a user. In those methods <strong>this</strong> will point to terminal object.</p>
128
128
<pre class="javascript">
@@ -142,9 +142,9 @@
142
142
}, { prompt: '>', greeting: false });
143
143
</pre>
144
144
145
-
<img src='images/Screenshot_R.png'/>
145
+
<img src="images/screenshot_002.png"/>
146
146
147
-
<img src='images/Screenshot_calc.png'/>
147
+
<img src="images/screenshot_003.png"/>
148
148
149
149
150
150
<p>This code will create two command <strong>echo</strong> that will print first argument and <strong>add</strong> that will add two integers.</p>
@@ -167,7 +167,7 @@
167
167
});
168
168
</pre>
169
169
170
-
<img src='images/Screenshot_my.png'/>
170
+
<img src="images/screenshot_004.png"/>
171
171
172
172
<p>In previous example mysql will be exception, even that rpc have that method it will not call it but create new interpreter.</p>
173
173
<p>Terminal will always process numbers if processArguments is set to true (by default).</p>
<li id="tracking_replace"><strong>tracking_replace(string, regex, replacement, position)</strong> — Function work the same as normal replace but keep track of position change so you can use it in formatter, it return the same output as required by formatters in version >=1.19.0.</li>
0 commit comments