]> Kevux Git Server - fll/commitdiff
Cleanup: Update controller examples.
authorKevin Day <thekevinday@gmail.com>
Sun, 10 Jul 2022 05:20:27 +0000 (00:20 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 10 Jul 2022 05:21:51 +0000 (00:21 -0500)
level_3/controller/data/settings/example/entries/environment.entry
level_3/controller/data/settings/example/rules/environment/default.rule
level_3/controller/data/settings/example/rules/environment/empty.rule
level_3/controller/data/settings/example/rules/environment/exported.rule
level_3/controller/data/settings/example/rules/environment/exporting.rule
level_3/controller/data/settings/example/rules/environment/fake-nothing.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/environment/fake-something.rule [new file with mode: 0644]
level_3/controller/data/settings/example/rules/print/newline.rule [new file with mode: 0644]

index 137031c75e4cd8d65271fc77da1b24c7b8e19219..a6978df21680df33d50851b34a1f4dc549fd13d0 100644 (file)
@@ -1,7 +1,14 @@
 # fss-0005
 
+settings:
+  mode program
+
 main:
   start environment default
   start environment exported
   start environment empty
   start environment exporting
+  start environment fake-nothing
+  start environment fake-something
+
+  start print newline
index 8c34d8ce12597ad44cc96ec687c6dcabb8ae8e2e..4efe7e42e807cdfdd3af263a5b1437b0ea95ee34 100644 (file)
@@ -1,4 +1,7 @@
 # fss-000d
+#
+# Note: bash automatically creates PWD, SHLVL, and _ environment variables.
+#
 
 settings:
   name "Environment default"
index 532da0c580fe79b45959b898d396c0796885b297..c0411873208fc39fd2c4743cef90514ecd795b0d 100644 (file)
@@ -1,4 +1,7 @@
 # fss-000d
+#
+# Note: bash automatically creates PWD, SHLVL, and _ environment variables.
+#
 
 settings:
   name "Environment set to nothing"
index 2e01c293a92112f07b62ae55d71ef2ad79d4f3b6..d8c204fdaa1bee0381dd82d739425cc0a0695d36 100644 (file)
@@ -1,4 +1,7 @@
 # fss-000d
+#
+# Note: bash automatically creates PWD, SHLVL, and _ environment variables.
+#
 
 settings:
   name "Environment with PATH"
index 7b874c2c2e22983ed4c6c99c95364a33b525f659..d2b3dadf0c588d9c0fa62a7a2a8b3df9dd651914 100644 (file)
@@ -1,4 +1,7 @@
 # fss-000d
+#
+# Note: bash automatically creates PWD, SHLVL, and _ environment variables.
+#
 
 settings:
   name "Environment with PATH"
diff --git a/level_3/controller/data/settings/example/rules/environment/fake-nothing.rule b/level_3/controller/data/settings/example/rules/environment/fake-nothing.rule
new file mode 100644 (file)
index 0000000..b0e596a
--- /dev/null
@@ -0,0 +1,22 @@
+# fss-000d
+
+settings:
+  name "Environment using fake as an engine"
+  engine fake ++quiet
+
+  # PATH must be expoted so that "run env" works.
+  environment PATH
+
+script:
+  start {
+    settings\:
+      environment
+
+    main\:
+      print
+      print "========================================"
+      print "Environment allowing nothing using fake."
+      print "========================================"
+
+      run env
+  }
diff --git a/level_3/controller/data/settings/example/rules/environment/fake-something.rule b/level_3/controller/data/settings/example/rules/environment/fake-something.rule
new file mode 100644 (file)
index 0000000..bfe6851
--- /dev/null
@@ -0,0 +1,18 @@
+# fss-000d
+
+settings:
+  name "Environment using fake as an engine"
+  engine fake ++quiet
+
+  environment PATH PWD
+
+script:
+  start {
+    main\:
+      print
+      print "============================================="
+      print "Environment allowing PATH and PWD using fake."
+      print "============================================="
+
+      run env
+  }
diff --git a/level_3/controller/data/settings/example/rules/print/newline.rule b/level_3/controller/data/settings/example/rules/print/newline.rule
new file mode 100644 (file)
index 0000000..0f2f489
--- /dev/null
@@ -0,0 +1,8 @@
+# fss-000d
+
+settings:
+  name "Print New Line"
+  engine bash
+
+script:
+  start echo