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: Website/src/docs/actions.html
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -102,9 +102,9 @@ <h3>Retrieve</h3>
102
102
103
103
<h3>Request</h3>
104
104
<p>Make HTTP requests to external APIs:</p>
105
-
<pre><code><spanclass="code-keyword"><Request></span> the <spanclass="code-result"><data></span> from <spanclass="code-string">"https://api.example.com/resource"</span>.
106
-
<spanclass="code-keyword"><Request></span> the <spanclass="code-result"><users></span> from <UserAPI: GET /users>.
107
-
<spanclass="code-keyword"><Request></span> the <spanclass="code-result"><weather></span> from <WeatherAPI: GET /forecast?city=${city}>.</code></pre>
105
+
<pre><code><spanclass="code-keyword">Request</span> the <spanclass="code-result"><data></span> from <spanclass="code-string">"https://api.example.com/resource"</span>.
106
+
<spanclass="code-keyword">Request</span> the <spanclass="code-result"><users></span> from <UserAPI: GET /users>.
107
+
<spanclass="code-keyword">Request</span> the <spanclass="code-result"><weather></span> from <WeatherAPI: GET /forecast?city=${city}>.</code></pre>
108
108
109
109
<h3>Read</h3>
110
110
<p>Read from files:</p>
@@ -115,18 +115,18 @@ <h3>Read</h3>
115
115
<h3>Request</h3>
116
116
<p>Make HTTP requests with method control:</p>
117
117
<pre><code><spanclass="code-comment">(* GET request *)</span>
118
-
<spanclass="code-keyword"><Request></span> the <spanclass="code-result"><data></span> from the <api-url>.
118
+
<spanclass="code-keyword">Request</span> the <spanclass="code-result"><data></span> from the <api-url>.
119
119
120
120
<spanclass="code-comment">(* POST request with data *)</span>
121
-
<spanclass="code-keyword"><Request></span> the <spanclass="code-result"><result></span> to the <api-url> with <payload>.
121
+
<spanclass="code-keyword">Request</span> the <spanclass="code-result"><result></span> to the <api-url> with <payload>.
<spanclass="code-keyword"><Request></span> the <spanclass="code-result"><result></span> via PUT the <url> with <update>.</code></pre>
124
+
<spanclass="code-keyword">Request</span> the <spanclass="code-result"><result></span> via PUT the <url> with <update>.</code></pre>
125
125
126
126
<h3>Exec</h3>
127
127
<p>Execute shell commands (ARO-0033):</p>
128
-
<pre><code><spanclass="code-keyword"><Exec></span> the <spanclass="code-result"><result></span> for the <command> with <spanclass="code-string">"ls -la"</span>.
129
-
<spanclass="code-keyword"><Exec></span> the <spanclass="code-result"><output></span> on the <system> with {
128
+
<pre><code><spanclass="code-keyword">Exec</span> the <spanclass="code-result"><result></span> for the <command> with <spanclass="code-string">"ls -la"</span>.
129
+
<spanclass="code-keyword">Exec</span> the <spanclass="code-result"><output></span> on the <system> with {
<pre><code><spanclass="code-keyword"><Append></span> the <log-line> to the <file: <spanclass="code-string">"./app.log"</span>>.
293
-
<spanclass="code-keyword"><Append></span> the <entry> to the <file: <spanclass="code-string">"./data.csv"</span>>.</code></pre>
292
+
<pre><code><spanclass="code-keyword">Append</span> the <log-line> to the <file: <spanclass="code-string">"./app.log"</span>>.
293
+
<spanclass="code-keyword">Append</span> the <entry> to the <file: <spanclass="code-string">"./data.csv"</span>>.</code></pre>
294
294
295
295
<h2>File Operations</h2>
296
296
<p>Actions for file system operations (ARO-0036).</p>
297
297
298
298
<h3>List</h3>
299
299
<p>List directory contents:</p>
300
300
<pre><code><spanclass="code-keyword">Create</span> the <dir-path> with <spanclass="code-string">"./uploads"</span>.
301
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><entries></span> from the <directory: dir-path>.
302
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><aro-files></span> from the <directory: src-path> matching <spanclass="code-string">"*.aro"</span>.
303
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><all-files></span> from the <directory: path> recursively.</code></pre>
301
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><entries></span> from the <directory: dir-path>.
302
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><aro-files></span> from the <directory: src-path> matching <spanclass="code-string">"*.aro"</span>.
303
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><all-files></span> from the <directory: path> recursively.</code></pre>
<pre><code><spanclass="code-keyword"><CreateDirectory></span> the <spanclass="code-result"><output-dir></span> to the <path: <spanclass="code-string">"./output/reports/2024"</span>>.</code></pre>
317
+
<pre><code><spanclass="code-keyword">CreateDirectory</span> the <spanclass="code-result"><output-dir></span> to the <path: <spanclass="code-string">"./output/reports/2024"</span>>.</code></pre>
318
318
319
319
<h3>Copy</h3>
320
320
<p>Copy files or directories:</p>
@@ -336,16 +336,16 @@ <h3>Start</h3>
336
336
337
337
<h3>Watch</h3>
338
338
<p>Monitor a directory:</p>
339
-
<pre><code><spanclass="code-keyword"><Watch></span> the <directory: <spanclass="code-string">"./uploads"</span>> as <file-monitor>.</code></pre>
339
+
<pre><code><spanclass="code-keyword">Watch</span> the <directory: <spanclass="code-string">"./uploads"</span>> as <file-monitor>.</code></pre>
340
340
341
341
<h3>Listen / Connect</h3>
342
342
<pre><code><spanclass="code-keyword">Listen</span> on port 9000 as <socket-server>.
343
343
<spanclass="code-keyword">Connect</span> to <host: <spanclass="code-string">"localhost"</span>> on port 5432 as <database>.</code></pre>
344
344
345
345
<h3>Close</h3>
346
346
<p>Close connections:</p>
347
-
<pre><code><spanclass="code-keyword"><Close></span> the <connection>.
348
-
<spanclass="code-keyword"><Close></span> the <socket-server>.</code></pre>
347
+
<pre><code><spanclass="code-keyword">Close</span> the <connection>.
348
+
<spanclass="code-keyword">Close</span> the <socket-server>.</code></pre>
349
349
350
350
<h3>Broadcast</h3>
351
351
<p>Send to all connections:</p>
@@ -375,14 +375,14 @@ <h2>Test Actions</h2>
375
375
376
376
<h3>Given / When / Then</h3>
377
377
<p>BDD-style test structure:</p>
378
-
<pre><code><spanclass="code-keyword"><Given></span> the <user> with { name: <spanclass="code-string">"Test"</span> }.
379
-
<spanclass="code-keyword"><When></span> the <action> is performed.
380
-
<spanclass="code-keyword"><Then></span> the <result> should be <expected>.</code></pre>
378
+
<pre><code><spanclass="code-keyword">Given</span> the <user> with { name: <spanclass="code-string">"Test"</span> }.
379
+
<spanclass="code-keyword">When</span> the <action> is performed.
380
+
<spanclass="code-keyword">Then</span> the <result> should be <expected>.</code></pre>
381
381
382
382
<h3>Assert</h3>
383
383
<p>Assert conditions:</p>
384
-
<pre><code><spanclass="code-keyword"><Assert></span> the <value> equals <expected>.
385
-
<spanclass="code-keyword"><Assert></span> the <list> contains <item>.</code></pre>
384
+
<pre><code><spanclass="code-keyword">Assert</span> the <value> equals <expected>.
385
+
<spanclass="code-keyword">Assert</span> the <list> contains <item>.</code></pre>
Copy file name to clipboardExpand all lines: Website/src/docs/event-driven.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -263,15 +263,15 @@ <h2>Event Handlers</h2>
263
263
<spanclass="code-keyword">Extract</span> the <spanclass="code-result"><items></span> from the <spanclass="code-result"><event: items></span>.
264
264
265
265
for each <item> in <items> {
266
-
<spanclass="code-keyword"><Decrement></span> the <stock> for the <item: productId>.
266
+
<spanclass="code-keyword">Decrement</span> the <stock> for the <item: productId>.
267
267
}
268
268
269
269
<spanclass="code-keyword">Return</span> an <spanclass="code-result"><OK: status></span> for the <inventory>.
<spanclass="code-keyword">Extract</span> the <spanclass="code-result"><amount></span> from the <spanclass="code-result"><event: amount></span>.
274
-
<spanclass="code-keyword"><Increment></span> the <daily-revenue> by <amount>.
274
+
<spanclass="code-keyword">Increment</span> the <daily-revenue> by <amount>.
275
275
<spanclass="code-keyword">Return</span> an <spanclass="code-result"><OK: status></span> for the <analytics>.
Copy file name to clipboardExpand all lines: Website/src/docs/file-operations.html
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -267,19 +267,19 @@ <h3>Write Files</h3>
267
267
268
268
<h3>Append to Files</h3>
269
269
<pre><code><spanclass="code-comment">(* Append to log file *)</span>
270
-
<spanclass="code-keyword"><Append></span> the <spanclass="code-result"><log-line></span> to the <file: <spanclass="code-string">"./logs/app.log"</span>>.</code></pre>
270
+
<spanclass="code-keyword">Append</span> the <spanclass="code-result"><log-line></span> to the <file: <spanclass="code-string">"./logs/app.log"</span>>.</code></pre>
271
271
272
272
<h2>Directory Operations</h2>
273
273
274
274
<h3>List Directory Contents</h3>
275
275
<pre><code><spanclass="code-comment">(* List all entries *)</span>
276
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><entries></span> in the <directory: <spanclass="code-string">"./uploads"</span>>.
276
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><entries></span> in the <directory: <spanclass="code-string">"./uploads"</span>>.
277
277
278
278
<spanclass="code-comment">(* Filter with glob pattern *)</span>
279
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><aro-files></span> in the <directory: <spanclass="code-string">"./src"</span>> matching <spanclass="code-string">"*.aro"</span>.
279
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><aro-files></span> in the <directory: <spanclass="code-string">"./src"</span>> matching <spanclass="code-string">"*.aro"</span>.
280
280
281
281
<spanclass="code-comment">(* List recursively *)</span>
282
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><all-files></span> in the <directory: <spanclass="code-string">"./project"</span>> recursively.</code></pre>
282
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><all-files></span> in the <directory: <spanclass="code-string">"./project"</span>> recursively.</code></pre>
283
283
284
284
<p>Each entry includes:</p>
285
285
<ul>
@@ -303,7 +303,7 @@ <h3>Check Existence</h3>
303
303
304
304
<h3>Create Directories</h3>
305
305
<pre><code><spanclass="code-comment">(* Create directory with all parent directories *)</span>
306
-
<spanclass="code-keyword"><CreateDirectory></span> the <spanclass="code-result"><output-dir></span> to the <path: <spanclass="code-string">"./output/reports/2024"</span>>.</code></pre>
306
+
<spanclass="code-keyword">CreateDirectory</span> the <spanclass="code-result"><output-dir></span> to the <path: <spanclass="code-string">"./output/reports/2024"</span>>.</code></pre>
307
307
308
308
<h3>Get File Metadata</h3>
309
309
<pre><code><spanclass="code-comment">(* Get detailed file stats *)</span>
@@ -340,7 +340,7 @@ <h2>Complete Example</h2>
340
340
<spanclass="code-keyword">Exists</span> the <spanclass="code-result"><dir-exists></span> for the <directory: <spanclass="code-string">"./demo-output"</span>>.
341
341
342
342
when <dir-exists> is false {
343
-
<spanclass="code-keyword"><CreateDirectory></span> the <spanclass="code-result"><output></span> to the <path: <spanclass="code-string">"./demo-output"</span>>.
343
+
<spanclass="code-keyword">CreateDirectory</span> the <spanclass="code-result"><output></span> to the <path: <spanclass="code-string">"./demo-output"</span>>.
344
344
<spanclass="code-keyword">Log</span><spanclass="code-string">"Created directory"</span> to the <console>.
345
345
}
346
346
@@ -349,7 +349,7 @@ <h2>Complete Example</h2>
349
349
with <spanclass="code-string">"Hello from ARO!"</span>.
350
350
351
351
<spanclass="code-comment">(* Append to it *)</span>
352
-
<spanclass="code-keyword"><Append></span> the <spanclass="code-result"><line></span> to the <file: <spanclass="code-string">"./demo-output/hello.txt"</span>>
352
+
<spanclass="code-keyword">Append</span> the <spanclass="code-result"><line></span> to the <file: <spanclass="code-string">"./demo-output/hello.txt"</span>>
353
353
with <spanclass="code-string">"\nAppended line."</span>.
354
354
355
355
<spanclass="code-comment">(* Get stats *)</span>
@@ -361,7 +361,7 @@ <h2>Complete Example</h2>
361
361
to the <destination: <spanclass="code-string">"./demo-output/hello-copy.txt"</span>>.
362
362
363
363
<spanclass="code-comment">(* List directory *)</span>
364
-
<spanclass="code-keyword"><List></span> the <spanclass="code-result"><files></span> in the <directory: <spanclass="code-string">"./demo-output"</span>>.
364
+
<spanclass="code-keyword">List</span> the <spanclass="code-result"><files></span> in the <directory: <spanclass="code-string">"./demo-output"</span>>.
365
365
366
366
<spanclass="code-keyword">Log</span><spanclass="code-string">"=== Complete ==="</span> to the <console>.
367
367
<spanclass="code-keyword">Return</span> an <spanclass="code-result"><OK: status></span> for the <demo>.
0 commit comments