gloo 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/gloo.gemspec +5 -2
- data/lib/VERSION +1 -1
- data/lib/gloo/verbs/help.rb +82 -0
- data/lib/gloo/verbs/version.rb +37 -0
- metadata +10 -82
- data/Gemfile.lock +0 -175
- data/lib/gloo/help/app/application.txt +0 -22
- data/lib/gloo/help/app/configuration.txt +0 -7
- data/lib/gloo/help/app/default_help.txt +0 -14
- data/lib/gloo/help/app/logging.txt +0 -16
- data/lib/gloo/help/core/color.txt +0 -31
- data/lib/gloo/help/core/error.txt +0 -33
- data/lib/gloo/help/core/events.txt +0 -21
- data/lib/gloo/help/core/gloo_system.txt +0 -57
- data/lib/gloo/help/core/here.txt +0 -30
- data/lib/gloo/help/core/it.txt +0 -23
- data/lib/gloo/help/core/ops.txt +0 -16
- data/lib/gloo/help/core/pathname.txt +0 -29
- data/lib/gloo/help/objs/basic/alias.txt +0 -36
- data/lib/gloo/help/objs/basic/boolean.txt +0 -28
- data/lib/gloo/help/objs/basic/container.txt +0 -33
- data/lib/gloo/help/objs/basic/decimal.txt +0 -28
- data/lib/gloo/help/objs/basic/integer.txt +0 -27
- data/lib/gloo/help/objs/basic/script.txt +0 -29
- data/lib/gloo/help/objs/basic/string.txt +0 -28
- data/lib/gloo/help/objs/basic/text.txt +0 -27
- data/lib/gloo/help/objs/basic/untyped.txt +0 -22
- data/lib/gloo/help/objs/cli/banner.txt +0 -49
- data/lib/gloo/help/objs/cli/bar.txt +0 -37
- data/lib/gloo/help/objs/cli/colorize.txt +0 -33
- data/lib/gloo/help/objs/cli/confirm.txt +0 -26
- data/lib/gloo/help/objs/cli/menu.txt +0 -44
- data/lib/gloo/help/objs/cli/menu_item.txt +0 -26
- data/lib/gloo/help/objs/cli/pastel.txt +0 -43
- data/lib/gloo/help/objs/cli/prompt.txt +0 -27
- data/lib/gloo/help/objs/cli/select.txt +0 -34
- data/lib/gloo/help/objs/ctrl/each.txt +0 -48
- data/lib/gloo/help/objs/ctrl/repeat.txt +0 -38
- data/lib/gloo/help/objs/data/markdown.txt +0 -25
- data/lib/gloo/help/objs/data/mysql.txt +0 -40
- data/lib/gloo/help/objs/data/query.txt +0 -37
- data/lib/gloo/help/objs/data/sqlite.txt +0 -26
- data/lib/gloo/help/objs/data/table.txt +0 -46
- data/lib/gloo/help/objs/dev/git_repo.txt +0 -36
- data/lib/gloo/help/objs/dev/stats.txt +0 -36
- data/lib/gloo/help/objs/dt/date.txt +0 -23
- data/lib/gloo/help/objs/dt/datetime.txt +0 -24
- data/lib/gloo/help/objs/dt/time.txt +0 -23
- data/lib/gloo/help/objs/ror/erb.txt +0 -37
- data/lib/gloo/help/objs/ror/eval.txt +0 -24
- data/lib/gloo/help/objs/snd/play.txt +0 -23
- data/lib/gloo/help/objs/snd/say.txt +0 -28
- data/lib/gloo/help/objs/system/file.txt +0 -48
- data/lib/gloo/help/objs/system/ssh_exec.txt +0 -30
- data/lib/gloo/help/objs/system/system.txt +0 -32
- data/lib/gloo/help/objs/web/http_get.txt +0 -35
- data/lib/gloo/help/objs/web/http_post.txt +0 -34
- data/lib/gloo/help/objs/web/json.txt +0 -34
- data/lib/gloo/help/objs/web/slack.txt +0 -33
- data/lib/gloo/help/objs/web/teams.txt +0 -30
- data/lib/gloo/help/objs/web/uri.txt +0 -38
- data/lib/gloo/help/verbs/alert.txt +0 -33
- data/lib/gloo/help/verbs/beep.txt +0 -25
- data/lib/gloo/help/verbs/cls.txt +0 -24
- data/lib/gloo/help/verbs/context.txt +0 -43
- data/lib/gloo/help/verbs/create.txt +0 -33
- data/lib/gloo/help/verbs/execute.txt +0 -27
- data/lib/gloo/help/verbs/help.txt +0 -34
- data/lib/gloo/help/verbs/if.txt +0 -37
- data/lib/gloo/help/verbs/list.txt +0 -34
- data/lib/gloo/help/verbs/load.txt +0 -38
- data/lib/gloo/help/verbs/move.txt +0 -42
- data/lib/gloo/help/verbs/put.txt +0 -38
- data/lib/gloo/help/verbs/quit.txt +0 -25
- data/lib/gloo/help/verbs/run.txt +0 -41
- data/lib/gloo/help/verbs/save.txt +0 -26
- data/lib/gloo/help/verbs/show.txt +0 -30
- data/lib/gloo/help/verbs/tell.txt +0 -34
- data/lib/gloo/help/verbs/unless.txt +0 -38
- data/lib/gloo/help/verbs/version.txt +0 -32
- data/lib/gloo/help/verbs/wait.txt +0 -29
data/lib/gloo/help/verbs/run.txt
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
RUN VERB
|
2
|
-
NAME: run
|
3
|
-
SHORTCUT: r
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Run a script or other object.
|
7
|
-
This is the same as sending a 'run' message to the object.
|
8
|
-
|
9
|
-
SYNTAX
|
10
|
-
run <path.to.object>
|
11
|
-
run ~> <expression>
|
12
|
-
|
13
|
-
PARAMETERS
|
14
|
-
path.to.object
|
15
|
-
- Reference to the object which will be run.
|
16
|
-
- The object must be a runnable object such as a script.
|
17
|
-
|
18
|
-
expression
|
19
|
-
- Evaluate the expression and run it.
|
20
|
-
|
21
|
-
|
22
|
-
RESULT
|
23
|
-
The result depends on the object that is run.
|
24
|
-
|
25
|
-
ERRORS
|
26
|
-
Missing Expression!
|
27
|
-
- No expression is provided as parameter to the verb.
|
28
|
-
|
29
|
-
EXAMPLE
|
30
|
-
|
31
|
-
> run my.script
|
32
|
-
|
33
|
-
> create s as script : "show 3 + 4"
|
34
|
-
> run s
|
35
|
-
|
36
|
-
Run a script in an evaluated expression:
|
37
|
-
> create s as string : "show 3 + 4"
|
38
|
-
> run ~> s
|
39
|
-
|
40
|
-
SEE ALSO
|
41
|
-
tell
|
@@ -1,26 +0,0 @@
|
|
1
|
-
SAVE VERB
|
2
|
-
NAME: save
|
3
|
-
SHORTCUT: >
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Save a previously loaded object to .gloo file. The path will be for the
|
7
|
-
root level object that was loaded earlier.
|
8
|
-
|
9
|
-
SYNTAX
|
10
|
-
save <path.to.object>
|
11
|
-
|
12
|
-
PARAMETERS
|
13
|
-
path.to.object - Name of the object file that is to be saved.
|
14
|
-
|
15
|
-
RESULT
|
16
|
-
The file is updated with the latest object state.
|
17
|
-
|
18
|
-
ERRORS
|
19
|
-
None
|
20
|
-
|
21
|
-
EXAMPLE
|
22
|
-
|
23
|
-
> save my_obj
|
24
|
-
|
25
|
-
SEE ALSO
|
26
|
-
load
|
@@ -1,30 +0,0 @@
|
|
1
|
-
SHOW VERB
|
2
|
-
NAME: show
|
3
|
-
SHORTCUT: =
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Show an object's value.
|
7
|
-
|
8
|
-
SYNTAX
|
9
|
-
show <path.to.object>
|
10
|
-
|
11
|
-
PARAMETERS
|
12
|
-
path.to.object - The object that we want to see.
|
13
|
-
|
14
|
-
RESULT
|
15
|
-
The object's value is shown.
|
16
|
-
<it> will contain the object's value.
|
17
|
-
|
18
|
-
ERRORS
|
19
|
-
None
|
20
|
-
|
21
|
-
EXAMPLE
|
22
|
-
|
23
|
-
> show "me"
|
24
|
-
> show "hello " "world"
|
25
|
-
> show 132 * 23
|
26
|
-
|
27
|
-
> create x : "boo"
|
28
|
-
> show x
|
29
|
-
|
30
|
-
SEE ALSO
|
@@ -1,34 +0,0 @@
|
|
1
|
-
TELL VERB
|
2
|
-
NAME: tell
|
3
|
-
SHORTCUT: ->
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Send a message to an object.
|
7
|
-
Ask the object to perform an action.
|
8
|
-
|
9
|
-
SYNTAX
|
10
|
-
tell <path.to.object> to <message>
|
11
|
-
|
12
|
-
PARAMETERS
|
13
|
-
path.to.object - The object that we want to see.
|
14
|
-
message - The message to send.
|
15
|
-
|
16
|
-
RESULT
|
17
|
-
The result depends on the message that is sent.
|
18
|
-
|
19
|
-
ERRORS
|
20
|
-
Missing message!
|
21
|
-
- No message was specified, or the 'to' keyword is missing.
|
22
|
-
|
23
|
-
Object was not found
|
24
|
-
- The target of the message was not found.
|
25
|
-
|
26
|
-
EXAMPLE
|
27
|
-
|
28
|
-
> tell an.obj to unload
|
29
|
-
> tell the.script to run
|
30
|
-
> tell my.str to up
|
31
|
-
> tell the.container to count
|
32
|
-
|
33
|
-
SEE ALSO
|
34
|
-
run
|
@@ -1,38 +0,0 @@
|
|
1
|
-
UNLESS VERB
|
2
|
-
NAME: unless
|
3
|
-
SHORTCUT: if!
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Unless an expression is true, do something.
|
7
|
-
This is the opposite of the if verb.
|
8
|
-
|
9
|
-
SYNTAX
|
10
|
-
unless <true> do <command>
|
11
|
-
|
12
|
-
PARAMETERS
|
13
|
-
true - Does the expression evaluate to true?
|
14
|
-
command - Execute command if the expression is not true.
|
15
|
-
|
16
|
-
RESULT
|
17
|
-
Unchanged if the expression is true.
|
18
|
-
If not true, then the result will be based on the command
|
19
|
-
specified after the 'do' keyword.
|
20
|
-
|
21
|
-
ERRORS
|
22
|
-
Missing Expression!
|
23
|
-
- No expression is provided as parameter to the verb.
|
24
|
-
|
25
|
-
Other errors depend on the command that is run.
|
26
|
-
|
27
|
-
EXAMPLE
|
28
|
-
|
29
|
-
unless [container] :
|
30
|
-
x [bool] : true
|
31
|
-
false_msg [string] : It is NOT true!
|
32
|
-
on_load [script] :
|
33
|
-
unless unless.x do show "first time: " + unless.false_msg
|
34
|
-
put false into unless.x
|
35
|
-
unless unless.x do show "second time: " + unless.false_msg
|
36
|
-
|
37
|
-
SEE ALSO
|
38
|
-
if
|
@@ -1,32 +0,0 @@
|
|
1
|
-
VERSION VERB
|
2
|
-
NAME: version
|
3
|
-
SHORTCUT: v
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Show the application version information.
|
7
|
-
|
8
|
-
This is the same as showing the version by running gloo
|
9
|
-
with the --version command line parameter.
|
10
|
-
|
11
|
-
SYNTAX
|
12
|
-
version
|
13
|
-
|
14
|
-
PARAMETERS
|
15
|
-
None
|
16
|
-
|
17
|
-
RESULT
|
18
|
-
None
|
19
|
-
|
20
|
-
ERRORS
|
21
|
-
None
|
22
|
-
|
23
|
-
EXAMPLE
|
24
|
-
|
25
|
-
> version
|
26
|
-
> v
|
27
|
-
|
28
|
-
This is the same as running this from the command line:
|
29
|
-
|
30
|
-
> gloo --version
|
31
|
-
|
32
|
-
SEE ALSO
|
@@ -1,29 +0,0 @@
|
|
1
|
-
WAIT VERB
|
2
|
-
NAME: wait
|
3
|
-
SHORTCUT: w
|
4
|
-
|
5
|
-
DESCRIPTION
|
6
|
-
Wait for the given number of seconds.
|
7
|
-
|
8
|
-
SYNTAX
|
9
|
-
wait <seconds>
|
10
|
-
|
11
|
-
PARAMETERS
|
12
|
-
seconds - The number of seconds.
|
13
|
-
If no value is given, we'll wait for 1 second.
|
14
|
-
|
15
|
-
RESULT
|
16
|
-
None
|
17
|
-
|
18
|
-
ERRORS
|
19
|
-
None
|
20
|
-
|
21
|
-
EXAMPLE
|
22
|
-
|
23
|
-
> wait
|
24
|
-
> wait 3
|
25
|
-
|
26
|
-
> create x as int : 10
|
27
|
-
> wait x
|
28
|
-
|
29
|
-
SEE ALSO
|