gloo 0.8.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/.gitignore +2 -1
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/LICENSE.txt +1 -1
  7. data/gloo.gemspec +12 -4
  8. data/lib/VERSION +1 -1
  9. data/lib/dependencies.rb +4 -4
  10. data/lib/gloo/app/info.rb +3 -1
  11. data/lib/gloo/app/log.rb +1 -29
  12. data/lib/gloo/app/platform.rb +142 -0
  13. data/lib/gloo/objs/cli/banner.rb +2 -2
  14. data/lib/gloo/objs/cli/bar.rb +4 -4
  15. data/lib/gloo/objs/cli/colorize.rb +3 -3
  16. data/lib/gloo/objs/cli/confirm.rb +3 -3
  17. data/lib/gloo/objs/cli/menu.rb +9 -9
  18. data/lib/gloo/objs/cli/menu_item.rb +2 -2
  19. data/lib/gloo/objs/cli/pastel.rb +2 -2
  20. data/lib/gloo/objs/cli/prompt.rb +4 -4
  21. data/lib/gloo/objs/cli/select.rb +4 -4
  22. data/lib/gloo/objs/data/mysql.rb +9 -9
  23. data/lib/gloo/objs/data/sqlite.rb +10 -10
  24. data/lib/gloo/objs/dev/git.rb +7 -7
  25. data/lib/gloo/objs/dev/stats.rb +8 -5
  26. data/lib/gloo/objs/snd/play.rb +1 -1
  27. data/lib/gloo/objs/snd/say.rb +2 -2
  28. data/lib/gloo/objs/system/file_handle.rb +9 -9
  29. data/lib/gloo/objs/system/ssh_exec.rb +3 -3
  30. data/lib/gloo/objs/system/system.rb +2 -2
  31. data/lib/gloo/verbs/alert.rb +7 -7
  32. data/lib/gloo/verbs/beep.rb +1 -1
  33. data/lib/gloo/verbs/cls.rb +2 -2
  34. data/lib/gloo/verbs/help.rb +7 -189
  35. data/lib/gloo/verbs/version.rb +3 -3
  36. data/lib/gloo.rb +5 -1
  37. data/lib/run.rb +5 -1
  38. metadata +41 -177
  39. data/Gemfile.lock +0 -171
  40. data/lib/gloo/app/args.rb +0 -112
  41. data/lib/gloo/app/engine.rb +0 -230
  42. data/lib/gloo/app/help.rb +0 -156
  43. data/lib/gloo/app/mode.rb +0 -27
  44. data/lib/gloo/app/settings.rb +0 -186
  45. data/lib/gloo/convert/converter.rb +0 -35
  46. data/lib/gloo/convert/string_to_datetime.rb +0 -21
  47. data/lib/gloo/convert/string_to_decimal.rb +0 -20
  48. data/lib/gloo/convert/string_to_integer.rb +0 -20
  49. data/lib/gloo/core/baseo.rb +0 -30
  50. data/lib/gloo/core/dictionary.rb +0 -181
  51. data/lib/gloo/core/error.rb +0 -61
  52. data/lib/gloo/core/event_manager.rb +0 -44
  53. data/lib/gloo/core/factory.rb +0 -210
  54. data/lib/gloo/core/gloo_system.rb +0 -266
  55. data/lib/gloo/core/heap.rb +0 -52
  56. data/lib/gloo/core/here.rb +0 -36
  57. data/lib/gloo/core/it.rb +0 -36
  58. data/lib/gloo/core/literal.rb +0 -30
  59. data/lib/gloo/core/obj.rb +0 -303
  60. data/lib/gloo/core/obj_finder.rb +0 -30
  61. data/lib/gloo/core/op.rb +0 -40
  62. data/lib/gloo/core/parser.rb +0 -59
  63. data/lib/gloo/core/pn.rb +0 -188
  64. data/lib/gloo/core/tokens.rb +0 -165
  65. data/lib/gloo/core/verb.rb +0 -86
  66. data/lib/gloo/exec/action.rb +0 -48
  67. data/lib/gloo/exec/dispatch.rb +0 -40
  68. data/lib/gloo/exec/exec_env.rb +0 -74
  69. data/lib/gloo/exec/runner.rb +0 -45
  70. data/lib/gloo/exec/script.rb +0 -49
  71. data/lib/gloo/exec/stack.rb +0 -78
  72. data/lib/gloo/expr/expression.rb +0 -118
  73. data/lib/gloo/expr/l_boolean.rb +0 -36
  74. data/lib/gloo/expr/l_decimal.rb +0 -39
  75. data/lib/gloo/expr/l_integer.rb +0 -37
  76. data/lib/gloo/expr/l_string.rb +0 -58
  77. data/lib/gloo/expr/op_div.rb +0 -22
  78. data/lib/gloo/expr/op_minus.rb +0 -22
  79. data/lib/gloo/expr/op_mult.rb +0 -22
  80. data/lib/gloo/expr/op_plus.rb +0 -24
  81. data/lib/gloo/help/app/application.txt +0 -22
  82. data/lib/gloo/help/app/configuration.txt +0 -7
  83. data/lib/gloo/help/app/default_help.txt +0 -14
  84. data/lib/gloo/help/app/logging.txt +0 -16
  85. data/lib/gloo/help/core/color.txt +0 -31
  86. data/lib/gloo/help/core/error.txt +0 -33
  87. data/lib/gloo/help/core/events.txt +0 -21
  88. data/lib/gloo/help/core/gloo_system.txt +0 -57
  89. data/lib/gloo/help/core/here.txt +0 -30
  90. data/lib/gloo/help/core/it.txt +0 -23
  91. data/lib/gloo/help/core/ops.txt +0 -16
  92. data/lib/gloo/help/core/pathname.txt +0 -29
  93. data/lib/gloo/help/objs/basic/alias.txt +0 -36
  94. data/lib/gloo/help/objs/basic/boolean.txt +0 -28
  95. data/lib/gloo/help/objs/basic/container.txt +0 -33
  96. data/lib/gloo/help/objs/basic/decimal.txt +0 -28
  97. data/lib/gloo/help/objs/basic/integer.txt +0 -27
  98. data/lib/gloo/help/objs/basic/script.txt +0 -29
  99. data/lib/gloo/help/objs/basic/string.txt +0 -28
  100. data/lib/gloo/help/objs/basic/text.txt +0 -27
  101. data/lib/gloo/help/objs/basic/untyped.txt +0 -22
  102. data/lib/gloo/help/objs/cli/banner.txt +0 -49
  103. data/lib/gloo/help/objs/cli/bar.txt +0 -37
  104. data/lib/gloo/help/objs/cli/colorize.txt +0 -33
  105. data/lib/gloo/help/objs/cli/confirm.txt +0 -26
  106. data/lib/gloo/help/objs/cli/menu.txt +0 -44
  107. data/lib/gloo/help/objs/cli/menu_item.txt +0 -26
  108. data/lib/gloo/help/objs/cli/pastel.txt +0 -43
  109. data/lib/gloo/help/objs/cli/prompt.txt +0 -27
  110. data/lib/gloo/help/objs/cli/select.txt +0 -34
  111. data/lib/gloo/help/objs/ctrl/each.txt +0 -48
  112. data/lib/gloo/help/objs/ctrl/repeat.txt +0 -38
  113. data/lib/gloo/help/objs/data/markdown.txt +0 -25
  114. data/lib/gloo/help/objs/data/mysql.txt +0 -40
  115. data/lib/gloo/help/objs/data/query.txt +0 -37
  116. data/lib/gloo/help/objs/data/sqlite.txt +0 -26
  117. data/lib/gloo/help/objs/data/table.txt +0 -46
  118. data/lib/gloo/help/objs/dev/git_repo.txt +0 -36
  119. data/lib/gloo/help/objs/dev/stats.txt +0 -36
  120. data/lib/gloo/help/objs/dt/date.txt +0 -23
  121. data/lib/gloo/help/objs/dt/datetime.txt +0 -24
  122. data/lib/gloo/help/objs/dt/time.txt +0 -23
  123. data/lib/gloo/help/objs/ror/erb.txt +0 -37
  124. data/lib/gloo/help/objs/ror/eval.txt +0 -24
  125. data/lib/gloo/help/objs/snd/play.txt +0 -23
  126. data/lib/gloo/help/objs/snd/say.txt +0 -28
  127. data/lib/gloo/help/objs/system/file.txt +0 -48
  128. data/lib/gloo/help/objs/system/ssh_exec.txt +0 -30
  129. data/lib/gloo/help/objs/system/system.txt +0 -32
  130. data/lib/gloo/help/objs/web/http_get.txt +0 -35
  131. data/lib/gloo/help/objs/web/http_post.txt +0 -34
  132. data/lib/gloo/help/objs/web/json.txt +0 -34
  133. data/lib/gloo/help/objs/web/slack.txt +0 -33
  134. data/lib/gloo/help/objs/web/teams.txt +0 -30
  135. data/lib/gloo/help/objs/web/uri.txt +0 -38
  136. data/lib/gloo/help/verbs/alert.txt +0 -33
  137. data/lib/gloo/help/verbs/beep.txt +0 -25
  138. data/lib/gloo/help/verbs/cls.txt +0 -24
  139. data/lib/gloo/help/verbs/context.txt +0 -43
  140. data/lib/gloo/help/verbs/create.txt +0 -33
  141. data/lib/gloo/help/verbs/execute.txt +0 -27
  142. data/lib/gloo/help/verbs/help.txt +0 -34
  143. data/lib/gloo/help/verbs/if.txt +0 -37
  144. data/lib/gloo/help/verbs/list.txt +0 -34
  145. data/lib/gloo/help/verbs/load.txt +0 -38
  146. data/lib/gloo/help/verbs/move.txt +0 -42
  147. data/lib/gloo/help/verbs/put.txt +0 -38
  148. data/lib/gloo/help/verbs/quit.txt +0 -25
  149. data/lib/gloo/help/verbs/run.txt +0 -41
  150. data/lib/gloo/help/verbs/save.txt +0 -26
  151. data/lib/gloo/help/verbs/show.txt +0 -30
  152. data/lib/gloo/help/verbs/tell.txt +0 -34
  153. data/lib/gloo/help/verbs/unless.txt +0 -38
  154. data/lib/gloo/help/verbs/version.txt +0 -32
  155. data/lib/gloo/help/verbs/wait.txt +0 -29
  156. data/lib/gloo/objs/basic/alias.rb +0 -78
  157. data/lib/gloo/objs/basic/boolean.rb +0 -120
  158. data/lib/gloo/objs/basic/container.rb +0 -76
  159. data/lib/gloo/objs/basic/decimal.rb +0 -76
  160. data/lib/gloo/objs/basic/integer.rb +0 -73
  161. data/lib/gloo/objs/basic/script.rb +0 -99
  162. data/lib/gloo/objs/basic/string.rb +0 -77
  163. data/lib/gloo/objs/basic/text.rb +0 -87
  164. data/lib/gloo/objs/basic/untyped.rb +0 -41
  165. data/lib/gloo/objs/ctrl/each.rb +0 -279
  166. data/lib/gloo/objs/ctrl/repeat.rb +0 -108
  167. data/lib/gloo/objs/data/markdown.rb +0 -84
  168. data/lib/gloo/objs/data/query.rb +0 -176
  169. data/lib/gloo/objs/data/table.rb +0 -140
  170. data/lib/gloo/objs/dt/date.rb +0 -50
  171. data/lib/gloo/objs/dt/datetime.rb +0 -62
  172. data/lib/gloo/objs/dt/time.rb +0 -50
  173. data/lib/gloo/objs/ror/erb.rb +0 -116
  174. data/lib/gloo/objs/ror/eval.rb +0 -107
  175. data/lib/gloo/objs/web/http_get.rb +0 -159
  176. data/lib/gloo/objs/web/http_post.rb +0 -183
  177. data/lib/gloo/objs/web/json.rb +0 -135
  178. data/lib/gloo/objs/web/slack.rb +0 -130
  179. data/lib/gloo/objs/web/teams.rb +0 -117
  180. data/lib/gloo/objs/web/uri.rb +0 -148
  181. data/lib/gloo/persist/file_loader.rb +0 -191
  182. data/lib/gloo/persist/file_saver.rb +0 -49
  183. data/lib/gloo/persist/file_storage.rb +0 -45
  184. data/lib/gloo/persist/line_splitter.rb +0 -81
  185. data/lib/gloo/persist/persist_man.rb +0 -120
  186. data/lib/gloo/utils/format.rb +0 -21
  187. data/lib/gloo/utils/stats.rb +0 -205
  188. data/lib/gloo/utils/words.rb +0 -19
  189. data/lib/gloo/verbs/context.rb +0 -62
  190. data/lib/gloo/verbs/create.rb +0 -68
  191. data/lib/gloo/verbs/execute.rb +0 -56
  192. data/lib/gloo/verbs/if.rb +0 -92
  193. data/lib/gloo/verbs/list.rb +0 -98
  194. data/lib/gloo/verbs/load.rb +0 -45
  195. data/lib/gloo/verbs/move.rb +0 -89
  196. data/lib/gloo/verbs/put.rb +0 -94
  197. data/lib/gloo/verbs/quit.rb +0 -40
  198. data/lib/gloo/verbs/run.rb +0 -75
  199. data/lib/gloo/verbs/save.rb +0 -39
  200. data/lib/gloo/verbs/show.rb +0 -64
  201. data/lib/gloo/verbs/tell.rb +0 -79
  202. data/lib/gloo/verbs/unless.rb +0 -92
  203. data/lib/gloo/verbs/wait.rb +0 -42
@@ -1,28 +0,0 @@
1
- SAY OBJECT TYPE
2
- NAME: say
3
- SHORTCUT: say
4
-
5
- DESCRIPTION
6
- Use the Mac text to speech function to convert text to audio.
7
- From the Mac CLI, run this to get a list of voices:
8
- say -v '?'
9
-
10
- CHILDREN
11
- voice - string
12
- The Voice to use. If left blank, the default voice will be used.
13
- message - string - 'talk to me'
14
- The message to speak.
15
-
16
- MESSAGES
17
- run - Speak the message, optionally in the voice specified.
18
-
19
- EXAMPLE
20
-
21
- say [say] :
22
- voice [string] : Moira
23
- message [string] : So long, and thanks for all the fish!
24
- on_load [script] :
25
- tell say to run
26
-
27
- SEE ALSO
28
- play, beep
@@ -1,48 +0,0 @@
1
- FILE OBJECT TYPE
2
- NAME: file
3
- SHORTCUT: dir
4
-
5
- DESCRIPTION
6
- Reference to a file or folder (directory) on disk.
7
- The string value of the file object is the path and name
8
- of the file.
9
-
10
- CHILDREN
11
- None.
12
-
13
- MESSAGES
14
- read <into.obj> - Read file and put data in the specified object.
15
- If the <into.obj> is not specified, the data will be in <it>.
16
- write <from.obj> - Write the data in the <from.object> into
17
- the file.
18
- show - Show the contents of the file.
19
- page - Show the contents of the file, paginated
20
- open - Open the file with the default application for the type.
21
- check_exists - Check to see if the file exists.
22
- <It> will be true or false.
23
- check_is_file - Check to see if the file specified is a
24
- regular file. <It> will be true or false.
25
- check_is_dir - Check to see if the file specified is a
26
- diretory. <It> will be true or false.
27
- find_match - Look for the existence of a file matching
28
- the file's pattern. <It> will be true or false.
29
-
30
- EXAMPLE
31
-
32
- exists [can] :
33
- f [file] : /Users/me/tmp
34
- on_load [script] :
35
- show "Checking to see if file exists: " + exists.f
36
- tell exists.f to check_exists
37
- show it
38
- tell exists.f to check_is_dir
39
- show "is a directory? " + it
40
- tell exists.f to check_is_file
41
- show "is a file? " + it
42
-
43
- f [file] : /Users/me/gloo/*.gemspec
44
- pattern [script] :
45
- tell f to find_match
46
- show it
47
-
48
- SEE ALSO
@@ -1,30 +0,0 @@
1
- SYSTEM OBJECT TYPE
2
- NAME: ssh_exec
3
- SHORTCUT: ssh
4
-
5
- DESCRIPTION
6
- Open an SSH session to host and execute a system command.
7
-
8
- CHILDREN
9
- host - string - 'localhost'
10
- The remote host to which to open a connection.
11
- The object assumes that the user has password-less SSH
12
- set up to the remote host.
13
- cmd - string
14
- The command to execute on the remote system.
15
- result - string
16
- The result of running the command.
17
-
18
- MESSAGES
19
- run - Open the connection and execute the command.
20
- Set the result value to the output of the command.
21
-
22
- EXAMPLE
23
-
24
- remote [ssh_exec] :
25
- host [string] : localhost
26
- cmd [string] : hostname
27
- result [string] :
28
-
29
- SEE ALSO
30
- execute, system
@@ -1,32 +0,0 @@
1
- SYSTEM OBJECT TYPE
2
- NAME: system
3
- SHORTCUT: sys
4
-
5
- DESCRIPTION
6
- Execute a system command.
7
-
8
- CHILDREN
9
- command - string - 'date'
10
- The command that will be sent to the system.
11
- get_output - boolean - true
12
- Should executing the command get the output and put it
13
- in the result object?
14
- result - string
15
- The result of running the command.
16
- The result will only be set if the 'get_output' child
17
- is set to true.
18
-
19
- MESSAGES
20
- run - Run the system level command.
21
- Set the result value to the output of the command if the
22
- 'get_output' child is marked as true.
23
-
24
- EXAMPLE
25
-
26
- date [system] :
27
- command [string] : date
28
- get_output [bool] : true
29
- result [string] :
30
-
31
- SEE ALSO
32
- execute, eval, erb
@@ -1,35 +0,0 @@
1
- HTTP_GET OBJECT TYPE
2
- NAME: http_get
3
- SHORTCUT: get
4
-
5
- DESCRIPTION
6
- Perform an HTTP Get.
7
-
8
- CHILDREN
9
- uri - string - 'https://web.site/'
10
- The URI for the HTTP Get request.
11
- params - container
12
- Collection of parameters for the HTTP Get.
13
- result - string
14
- The result of the request. Whatever was returned from
15
- the HTTP Get call.
16
- skip_ssl_verify - boolean (optional)
17
- Skip the SSL verification as part of the request.
18
-
19
- MESSAGES
20
- run - Run the HTTP Get and update the result.
21
-
22
- EXAMPLE
23
-
24
- g [http_get] :
25
- uri [string] : http://api.sunrise-sunset.org/json
26
- params [container] :
27
- lat [string] : 36.7201600
28
- lng [string] : -4.4203400
29
- date [string] : today
30
- result [string] :
31
-
32
- > run g
33
-
34
- SEE ALSO
35
- http_post, json, uri
@@ -1,34 +0,0 @@
1
- HTTP_POST OBJECT TYPE
2
- NAME: http_post
3
- SHORTCUT: post
4
-
5
- DESCRIPTION
6
- Perform an HTTP Post.
7
-
8
- CHILDREN
9
- uri - string - 'https://web.site/'
10
- The URI for the HTTP Post.
11
- body - container
12
- Collection of parameters for the HTTP Post.
13
- result - string - Optional parameter
14
- The result of the request. Whatever was returned in the body
15
- of the HTTP POST.
16
- skip_ssl_verify - boolean (optional)
17
- Skip the SSL verification as part of the request.
18
-
19
- MESSAGES
20
- run - Run the HTTP Post sending the body data to the
21
- endpoint specified in the URI.
22
-
23
- EXAMPLE
24
-
25
- post [post] :
26
- txt [str] : Message from gloo!
27
- uri [str] : https://my.service.com/my-long-token
28
- body [can] :
29
- text [alias] : post.txt
30
- username [str] : me
31
- on_load [script] : run post
32
-
33
- SEE ALSO
34
- http_get, json, uri
@@ -1,34 +0,0 @@
1
- JSON OBJECT TYPE
2
- NAME: json
3
- SHORTCUT: json
4
-
5
- DESCRIPTION
6
- JSON data in a text string.
7
-
8
- CHILDREN
9
- None
10
-
11
- MESSAGES
12
- get - get a value from the JSON data
13
- Example: tell myjson to get ("title")
14
- The additional parameter is the path to the value.
15
- parse - parse the JSON data and put values in the
16
- object specified by the additional parameter
17
- Example: tell myjson to parse ("path.to.objects")
18
- pretty - make the JSON format pretty
19
-
20
- EXAMPLE
21
-
22
- json [can] :
23
- on_load [script] :
24
- list json.objs
25
- show json.j
26
- tell json.j to parse (json.objs)
27
- list json.objs
28
- j [json] : {"title":"Brute Force","quotation":"When in doubt, use brute force.","author":"Eric Steven Raymond","source":"The Art of Unix Programming"}
29
- objs [can] :
30
- title [string] :
31
- quotation [string] :
32
-
33
- SEE ALSO
34
- http_get, http_post, uri
@@ -1,33 +0,0 @@
1
- SLACK OBJECT TYPE
2
- NAME: slack
3
- SHORTCUT: slack
4
-
5
- DESCRIPTION
6
- Send message to channel in Slack.
7
-
8
- CHILDREN
9
- uri - string - 'https://hooks.slack.com/services/...'
10
- The URI with access to the Slack channel.
11
- message - string - 'textual message'
12
- Message to send to Slack.
13
- username - string - 'Slack Bot'
14
- Attribute the message to this user.
15
- channel - string - 'general'
16
- The name of the channel for the post.
17
- icon_emoji - string - ':ghost:'
18
- The emoji to use for the attribution.
19
-
20
- MESSAGES
21
- run - Post the message to Slack.
22
-
23
- EXAMPLE
24
-
25
- slack [slack] :
26
- uri [string] : https://hooks.slack.com/services/MYTOKEN
27
- message [string] : Slackbot is here to help!
28
- username [string] : SlackBot
29
- channel [string] : general
30
- icon_emoji [string] : :ghost:
31
-
32
- SEE ALSO
33
- http_get, http_post, json, uri
@@ -1,30 +0,0 @@
1
- TEAMS OBJECT TYPE
2
- NAME: teams
3
- SHORTCUT: team
4
-
5
- DESCRIPTION
6
- Send message to channel in Teams.
7
-
8
- CHILDREN
9
- uri - string - 'https://outlook.office.com/webhook/...'
10
- The URI with access to the Teams channel.
11
- title - string
12
- Message title; header.
13
- color - string - '008000'
14
- Color theme for the message.
15
- message - string
16
- The message to post in Teams.
17
-
18
- MESSAGES
19
- run - Post the message to Teams.
20
-
21
- EXAMPLE
22
-
23
- team [teams] :
24
- uri [string] : https://outlook.office.com/webhook/MYTOKEN/IncomingWebhook/MYTOKEN
25
- title [string] : Success
26
- color [string] : 008000
27
- message [string] : This worked!
28
-
29
- SEE ALSO
30
- http_get, http_post, json, uri
@@ -1,38 +0,0 @@
1
- URI OBJECT TYPE
2
- NAME: uri
3
- SHORTCUT: url
4
-
5
- DESCRIPTION
6
- A URI or URL.
7
-
8
- CHILDREN
9
- None
10
-
11
- MESSAGES
12
- open - open the URL in the default browser
13
- get_scheme - get the URI scheme; example: http
14
- get_host - get the URI host; example: google.com
15
- get_path - get the URI resource path; example: /post
16
- get_query - get the URI query parameters; example: id=121
17
- get_fragment - get the URI fragment
18
- get_cert_expires - get the web site's certificate expiration date
19
-
20
- EXAMPLE
21
-
22
- url [can] :
23
- on_load [script] :
24
- tell url.u to get_scheme
25
- show "scheme: " + it
26
-
27
- tell url.u to get_host
28
- show "host: " + it
29
-
30
- tell url.u to get_path
31
- show "path: " + it
32
-
33
- show "opening URL: " + url.u
34
- tell url.u to open
35
- u [uri] : https://my.url/path/1234
36
-
37
- SEE ALSO
38
- http_get, http_post, json
@@ -1,33 +0,0 @@
1
- ALERT VERB
2
- NAME: alert
3
- SHORTCUT: !
4
-
5
- DESCRIPTION
6
- Show a pop-up notification.
7
- This has only been implemented for the Mac OS X as of yet.
8
-
9
- SYNTAX
10
- alert <messsage>
11
-
12
- PARAMETERS
13
- messsage - The message that will be displayed in the alert.
14
-
15
- RESULT
16
- On the Mac, a notification will popup on screen.
17
- <it> will be set to the message.
18
-
19
- ERRORS
20
- Missing Expression!
21
- - No expression is provided as parameter to the verb.
22
- Expression evaluated with no result!
23
- - Expression is provided but evaluates to nil.
24
-
25
- EXAMPLE
26
-
27
- > create s as string : "boo"
28
- > alert s
29
-
30
- > alert "important message!"
31
-
32
- SEE ALSO
33
- show
@@ -1,25 +0,0 @@
1
- BEEP VERB
2
- NAME: beep
3
- SHORTCUT: b
4
-
5
- DESCRIPTION
6
- Play a standard system beep sound.
7
-
8
- SYNTAX
9
- beep
10
-
11
- PARAMETERS
12
- None
13
-
14
- RESULT
15
- None
16
-
17
- ERRORS
18
- None
19
-
20
- EXAMPLE
21
-
22
- > beep
23
-
24
- SEE ALSO
25
- play, say
@@ -1,24 +0,0 @@
1
- CLS VERB
2
- NAME: cls
3
- SHORTCUT: cls
4
-
5
- DESCRIPTION
6
- Clear the console screen.
7
-
8
- SYNTAX
9
- cls
10
-
11
- PARAMETERS
12
- None
13
-
14
- RESULT
15
- The screen is cleared and cursor set to the top.
16
-
17
- ERRORS
18
- None
19
-
20
- EXAMPLE
21
-
22
- > cls
23
-
24
- SEE ALSO
@@ -1,43 +0,0 @@
1
- CONTEXT VERB
2
- NAME: context
3
- SHORTCUT: @
4
-
5
- DESCRIPTION
6
- Get or set the current context.
7
- When no parameter is provided, the context will be shown.
8
- The the optional path parameter is provided, the context will
9
- be set to that path.
10
- Use 'context root' to set the context back to the root level.
11
-
12
- SYNTAX
13
- context <path.to.new.context>
14
-
15
- PARAMETERS
16
- path.to.new.context - Optional. The path to the new context.
17
-
18
- RESULT
19
- Context is optionally set.
20
- <it> will be set to the new context path when we are changing context.
21
- Context is show in either case.
22
-
23
- ERRORS
24
- None
25
-
26
- Note that providing a context does not exist will not initially
27
- be a problem. In other words, you can set the context to an
28
- object before it exists. However use of context that doesn't exist
29
- will be a problem.
30
-
31
- EXAMPLE
32
-
33
- > context
34
- Context: root
35
-
36
- > context my.object.path
37
- Context: my.object.path
38
-
39
- > context root
40
- Context: root
41
-
42
- SEE ALSO
43
- list
@@ -1,33 +0,0 @@
1
- CREATE VERB
2
- NAME: create
3
- SHORTCUT: `
4
-
5
- DESCRIPTION
6
- Create a new object of given type with given value.
7
- Both type and value are optional when creating an object.
8
-
9
- SYNTAX
10
- create <new.object.path> as <type> : <value>
11
-
12
- PARAMETERS
13
- new.object.path - The path and name of the new object
14
- type - The type of the new object
15
- value - The initial value for the new object
16
-
17
- RESULT
18
- The new object will be created and added to the object heap.
19
- <it> will be set to the new object's initial value.
20
-
21
- ERRORS
22
- Object name is missing!
23
- - The name of the object was not specified and the object
24
- cannot be created.
25
-
26
- EXAMPLE
27
-
28
- > create x as integer : 1
29
- > create s : "abc"
30
- > create t
31
-
32
- SEE ALSO
33
- objects
@@ -1,27 +0,0 @@
1
- EXECUTE VERB
2
- NAME: execute
3
- SHORTCUT: exec
4
-
5
- DESCRIPTION
6
- Execute a shell command.
7
-
8
- SYNTAX
9
- exec <expression>
10
-
11
- PARAMETERS
12
- expression
13
- - Evaluate the expression and execute in the shell.
14
-
15
- RESULT
16
- none
17
-
18
- ERRORS
19
- Missing Expression!
20
- - No expression is provided as parameter to the verb.
21
-
22
- EXAMPLE
23
-
24
- > exec 'rake test'
25
-
26
- SEE ALSO
27
- system, eval, erb
@@ -1,34 +0,0 @@
1
- HELP VERB
2
- NAME: help
3
- SHORTCUT: ?
4
-
5
- DESCRIPTION
6
- Show information about the application.
7
- The help command can also be used to show a list of objects,
8
- verbs, or to show detail about a single object or a
9
- single verb.
10
-
11
- SYNTAX
12
- help <topic>
13
-
14
- PARAMETERS
15
- about - Optional parameter.
16
- If no parameter is given, shows the default help screen
17
- keywords - List all keywords
18
- verbs - List available verbs
19
- objects - List available objects
20
- settings - List application settings
21
- topics - List all help topics
22
- <verb> - Look up detail about a verb
23
- <object> - Look up detail about an object
24
-
25
- RESULT
26
- The help screen will be shown with relevant information.
27
-
28
- ERRORS
29
- Help command could not be found
30
- - Trying to access a help topic that does not exist will result
31
- in an error.
32
-
33
- SEE ALSO
34
- application
@@ -1,37 +0,0 @@
1
- IF VERB
2
- NAME: if
3
- SHORTCUT: if
4
-
5
- DESCRIPTION
6
- If an expression is true then do something.
7
-
8
- SYNTAX
9
- if <true> then <do>
10
-
11
- PARAMETERS
12
- true - Does the expression evaluate to true?
13
- do - Execute command if the expression is true.
14
-
15
- RESULT
16
- Unchanged if the expression is not true.
17
- If true, then the result will be based on the command
18
- specified after the 'then' keyword.
19
-
20
- ERRORS
21
- Missing Expression!
22
- - No expression is provided as parameter to the verb.
23
-
24
- Other errors depend on the command that is run.
25
-
26
- EXAMPLE
27
-
28
- if [container] :
29
- x [bool] : false
30
- true_msg [string] : It is true!
31
- on_load [script] :
32
- if if.x then show "first time: " + if.true_msg
33
- put true into if.x
34
- if if.x then show "second time: " + if.true_msg
35
-
36
- SEE ALSO
37
- unless
@@ -1,34 +0,0 @@
1
- LIST VERB
2
- NAME: list
3
- SHORTCUT: .
4
-
5
- DESCRIPTION
6
- List out objects (and children) at the current context.
7
- When a path is provided, it will be listed instead of the
8
- current context.
9
-
10
- When using context, the current context will be shown, but
11
- when context has not been set, the root will be shown.
12
-
13
- SYNTAX
14
- list <path.to.object>
15
-
16
- PARAMETERS
17
- path.to.object - Optional path to object that will be listed.
18
- When no path is provided, the current context is used.
19
-
20
- RESULT
21
- Object and children are listed out in the CLI.
22
-
23
- ERRORS
24
- Object does not exist
25
- - The object specified that is to be listed could not be found.
26
-
27
- EXAMPLE
28
-
29
- > list
30
- > list my.container
31
- > list root
32
-
33
- SEE ALSO
34
- context
@@ -1,38 +0,0 @@
1
- LOAD VERB
2
- NAME: load
3
- SHORTCUT: <
4
-
5
- DESCRIPTION
6
- Load an object file.
7
- There are two ways to specify the file. Give either the full path
8
- and file name or use a relative path from the gloo project folder.
9
- For the latter, the extension is not needed. For the former, the
10
- file extension is necessary.
11
-
12
- Using * instead of a file name will load all gloo files in the folder.
13
-
14
- SYNTAX
15
- load <file_name>
16
-
17
- PARAMETERS
18
- file_name - Name of the object file that is to be loaded.
19
-
20
- RESULT
21
- Objects are loaded into the heap.
22
- on_load scripts are run within the loaded objects.
23
-
24
- ERRORS
25
- Missing Expression!
26
- - No expression is provided as parameter to the verb.
27
-
28
- If the file specified can't be found or can't be loaded,
29
- an error condition will result.
30
-
31
- EXAMPLE
32
-
33
- > load my/project/file
34
- > load my/app/*
35
- > load ~/.my_app/settings.gloo
36
-
37
- SEE ALSO
38
- save