gloo 0.5.4 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/gloo/app/args.rb +48 -6
- data/lib/gloo/app/engine.rb +60 -38
- data/lib/gloo/app/help.rb +137 -16
- data/lib/gloo/app/info.rb +3 -1
- data/lib/gloo/app/log.rb +23 -0
- data/lib/gloo/app/mode.rb +2 -0
- data/lib/gloo/app/settings.rb +98 -47
- data/lib/gloo/convert/converter.rb +35 -0
- data/lib/gloo/convert/string_to_datetime.rb +1 -1
- data/lib/gloo/convert/string_to_decimal.rb +1 -1
- data/lib/gloo/convert/string_to_integer.rb +1 -1
- data/lib/gloo/core/dictionary.rb +99 -22
- data/lib/gloo/core/error.rb +19 -8
- data/lib/gloo/core/event_manager.rb +4 -0
- data/lib/gloo/core/factory.rb +11 -0
- data/lib/gloo/core/gloo_system.rb +1 -1
- data/lib/gloo/core/heap.rb +11 -3
- data/lib/gloo/core/here.rb +36 -0
- data/lib/gloo/core/it.rb +6 -0
- data/lib/gloo/core/literal.rb +5 -0
- data/lib/gloo/core/obj.rb +22 -0
- data/lib/gloo/core/op.rb +7 -0
- data/lib/gloo/core/parser.rb +6 -0
- data/lib/gloo/core/pn.rb +38 -0
- data/lib/gloo/core/tokens.rb +66 -22
- data/lib/gloo/core/verb.rb +12 -0
- data/lib/gloo/exec/action.rb +48 -0
- data/lib/gloo/exec/dispatch.rb +15 -5
- data/lib/gloo/exec/exec_env.rb +74 -0
- data/lib/gloo/exec/runner.rb +4 -2
- data/lib/gloo/{core → exec}/script.rb +21 -9
- data/lib/gloo/exec/stack.rb +78 -0
- data/lib/gloo/expr/expression.rb +26 -4
- data/lib/gloo/expr/l_boolean.rb +6 -0
- data/lib/gloo/expr/l_decimal.rb +5 -0
- data/lib/gloo/expr/l_integer.rb +7 -0
- data/lib/gloo/expr/l_string.rb +7 -0
- data/lib/gloo/expr/op_div.rb +2 -0
- data/lib/gloo/expr/op_minus.rb +2 -0
- data/lib/gloo/expr/op_mult.rb +2 -0
- data/lib/gloo/expr/op_plus.rb +2 -0
- data/lib/gloo/help/app/application.txt +22 -0
- data/lib/gloo/help/app/configuration.txt +7 -0
- data/lib/gloo/help/app/default_help.txt +14 -0
- data/lib/gloo/help/app/logging.txt +16 -0
- data/lib/gloo/help/core/color.txt +31 -0
- data/lib/gloo/help/core/error.txt +33 -0
- data/lib/gloo/help/core/events.txt +21 -0
- data/lib/gloo/help/core/gloo_system.txt +54 -0
- data/lib/gloo/help/core/here.txt +30 -0
- data/lib/gloo/help/core/it.txt +23 -0
- data/lib/gloo/help/core/ops.txt +16 -0
- data/lib/gloo/help/core/pathname.txt +29 -0
- data/lib/gloo/help/objs/basic/alias.txt +36 -0
- data/lib/gloo/help/objs/basic/boolean.txt +28 -0
- data/lib/gloo/help/objs/basic/container.txt +33 -0
- data/lib/gloo/help/objs/basic/decimal.txt +28 -0
- data/lib/gloo/help/objs/basic/integer.txt +27 -0
- data/lib/gloo/help/objs/basic/script.txt +29 -0
- data/lib/gloo/help/objs/basic/string.txt +28 -0
- data/lib/gloo/help/objs/basic/text.txt +27 -0
- data/lib/gloo/help/objs/basic/untyped.txt +22 -0
- data/lib/gloo/help/objs/cli/banner.txt +49 -0
- data/lib/gloo/help/objs/cli/bar.txt +34 -0
- data/lib/gloo/help/objs/cli/colorize.txt +33 -0
- data/lib/gloo/help/objs/cli/confirm.txt +26 -0
- data/lib/gloo/help/objs/cli/menu.txt +44 -0
- data/lib/gloo/help/objs/cli/menu_item.txt +26 -0
- data/lib/gloo/help/objs/cli/pastel.txt +43 -0
- data/lib/gloo/help/objs/cli/prompt.txt +27 -0
- data/lib/gloo/help/objs/cli/select.txt +34 -0
- data/lib/gloo/help/objs/ctrl/each.txt +48 -0
- data/lib/gloo/help/objs/ctrl/repeat.txt +38 -0
- data/lib/gloo/help/objs/data/markdown.txt +25 -0
- data/lib/gloo/help/objs/data/table.txt +46 -0
- data/lib/gloo/help/objs/dev/git_repo.txt +35 -0
- data/lib/gloo/help/objs/dt/date.txt +23 -0
- data/lib/gloo/help/objs/dt/datetime.txt +24 -0
- data/lib/gloo/help/objs/dt/time.txt +23 -0
- data/lib/gloo/help/objs/ror/erb.txt +37 -0
- data/lib/gloo/help/objs/ror/eval.txt +24 -0
- data/lib/gloo/help/objs/snd/play.txt +23 -0
- data/lib/gloo/help/objs/snd/say.txt +28 -0
- data/lib/gloo/help/objs/system/file.txt +41 -0
- data/lib/gloo/help/objs/system/system.txt +32 -0
- data/lib/gloo/help/objs/web/http_get.txt +35 -0
- data/lib/gloo/help/objs/web/http_post.txt +32 -0
- data/lib/gloo/help/objs/web/json.txt +34 -0
- data/lib/gloo/help/objs/web/slack.txt +33 -0
- data/lib/gloo/help/objs/web/teams.txt +30 -0
- data/lib/gloo/help/objs/web/uri.txt +37 -0
- data/lib/gloo/help/verbs/alert.txt +33 -0
- data/lib/gloo/help/verbs/beep.txt +25 -0
- data/lib/gloo/help/verbs/cls.txt +24 -0
- data/lib/gloo/help/verbs/context.txt +43 -0
- data/lib/gloo/help/verbs/create.txt +33 -0
- data/lib/gloo/help/verbs/execute.txt +27 -0
- data/lib/gloo/help/verbs/help.txt +34 -0
- data/lib/gloo/help/verbs/if.txt +37 -0
- data/lib/gloo/help/verbs/list.txt +34 -0
- data/lib/gloo/help/verbs/load.txt +38 -0
- data/lib/gloo/help/verbs/move.txt +42 -0
- data/lib/gloo/help/verbs/put.txt +38 -0
- data/lib/gloo/help/verbs/quit.txt +25 -0
- data/lib/gloo/help/verbs/run.txt +41 -0
- data/lib/gloo/help/verbs/save.txt +26 -0
- data/lib/gloo/help/verbs/show.txt +30 -0
- data/lib/gloo/help/verbs/tell.txt +34 -0
- data/lib/gloo/help/verbs/unless.txt +38 -0
- data/lib/gloo/help/verbs/version.txt +32 -0
- data/lib/gloo/help/verbs/wait.txt +29 -0
- data/lib/gloo/objs/basic/alias.rb +0 -33
- data/lib/gloo/objs/basic/boolean.rb +6 -27
- data/lib/gloo/objs/basic/container.rb +0 -33
- data/lib/gloo/objs/basic/decimal.rb +8 -28
- data/lib/gloo/objs/basic/integer.rb +5 -26
- data/lib/gloo/objs/basic/script.rb +1 -27
- data/lib/gloo/objs/basic/string.rb +6 -26
- data/lib/gloo/objs/basic/text.rb +0 -25
- data/lib/gloo/objs/basic/untyped.rb +0 -26
- data/lib/gloo/objs/cli/banner.rb +0 -29
- data/lib/gloo/objs/cli/bar.rb +0 -29
- data/lib/gloo/objs/cli/colorize.rb +4 -34
- data/lib/gloo/objs/cli/confirm.rb +6 -36
- data/lib/gloo/objs/cli/menu.rb +6 -36
- data/lib/gloo/objs/cli/menu_item.rb +0 -33
- data/lib/gloo/objs/cli/pastel.rb +4 -27
- data/lib/gloo/objs/cli/prompt.rb +4 -28
- data/lib/gloo/objs/cli/select.rb +4 -31
- data/lib/gloo/objs/ctrl/each.rb +33 -33
- data/lib/gloo/objs/ctrl/repeat.rb +8 -29
- data/lib/gloo/objs/data/markdown.rb +0 -25
- data/lib/gloo/objs/data/table.rb +4 -32
- data/lib/gloo/objs/dev/git.rb +12 -30
- data/lib/gloo/objs/dt/date.rb +3 -25
- data/lib/gloo/objs/dt/datetime.rb +4 -26
- data/lib/gloo/objs/dt/time.rb +3 -25
- data/lib/gloo/objs/ror/erb.rb +11 -45
- data/lib/gloo/objs/ror/eval.rb +11 -38
- data/lib/gloo/objs/snd/play.rb +2 -25
- data/lib/gloo/objs/snd/say.rb +9 -31
- data/lib/gloo/objs/system/file_handle.rb +0 -38
- data/lib/gloo/objs/system/system.rb +16 -46
- data/lib/gloo/objs/web/http_get.rb +57 -83
- data/lib/gloo/objs/web/http_post.rb +8 -31
- data/lib/gloo/objs/web/json.rb +11 -31
- data/lib/gloo/objs/web/slack.rb +7 -34
- data/lib/gloo/objs/web/teams.rb +13 -48
- data/lib/gloo/objs/web/uri.rb +0 -29
- data/lib/gloo/persist/file_loader.rb +8 -0
- data/lib/gloo/persist/file_saver.rb +6 -0
- data/lib/gloo/persist/file_storage.rb +2 -0
- data/lib/gloo/persist/line_splitter.rb +2 -0
- data/lib/gloo/persist/persist_man.rb +6 -0
- data/lib/gloo/verbs/alert.rb +30 -44
- data/lib/gloo/verbs/beep.rb +0 -30
- data/lib/gloo/verbs/cls.rb +0 -30
- data/lib/gloo/verbs/context.rb +9 -39
- data/lib/gloo/verbs/create.rb +17 -32
- data/lib/gloo/verbs/execute.rb +52 -0
- data/lib/gloo/verbs/help.rb +151 -115
- data/lib/gloo/verbs/if.rb +46 -44
- data/lib/gloo/verbs/list.rb +36 -54
- data/lib/gloo/verbs/load.rb +8 -37
- data/lib/gloo/verbs/move.rb +12 -51
- data/lib/gloo/verbs/put.rb +28 -52
- data/lib/gloo/verbs/quit.rb +0 -31
- data/lib/gloo/verbs/run.rb +23 -39
- data/lib/gloo/verbs/save.rb +0 -33
- data/lib/gloo/verbs/show.rb +6 -31
- data/lib/gloo/verbs/tell.rb +31 -31
- data/lib/gloo/verbs/unless.rb +47 -46
- data/lib/gloo/verbs/version.rb +0 -30
- data/lib/gloo/verbs/wait.rb +0 -31
- metadata +79 -3
@@ -0,0 +1,26 @@
|
|
1
|
+
CONFIRM OBJECT TYPE
|
2
|
+
NAME: confirm
|
3
|
+
SHORTCUT: confirm
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
CLI confirmation prompt.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
prompt - string - '> '
|
10
|
+
The confirmation prompt.
|
11
|
+
result - boolean - none
|
12
|
+
The result of the prompt.
|
13
|
+
|
14
|
+
MESSAGES
|
15
|
+
run - Prompt the user and then set the result.
|
16
|
+
|
17
|
+
EXAMPLE
|
18
|
+
|
19
|
+
confirm [confirm] :
|
20
|
+
prompt [string] : Are you sure?
|
21
|
+
result [boolean] :
|
22
|
+
on_load [script] :
|
23
|
+
run confirm
|
24
|
+
show 'Confirmed: ' + confirm.result
|
25
|
+
|
26
|
+
SEE ALSO
|
@@ -0,0 +1,44 @@
|
|
1
|
+
MENU OBJECT TYPE
|
2
|
+
NAME: menu
|
3
|
+
SHORTCUT: menu
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
A CLI menu.
|
7
|
+
This can be used for the main loop of a CLI application.
|
8
|
+
|
9
|
+
CHILDREN
|
10
|
+
prompt - string - '> '
|
11
|
+
The shortcut may be used to select the menu item.
|
12
|
+
items - container
|
13
|
+
A textual description of the menu item action.
|
14
|
+
loop - boolean
|
15
|
+
The script that will be run if the menu item is selected.
|
16
|
+
default - script
|
17
|
+
Optional script element. Run this if no other option selected.
|
18
|
+
|
19
|
+
MESSAGES
|
20
|
+
run - Show the options and the the prompt.
|
21
|
+
Then run the script for the user's selection.
|
22
|
+
Optionally repeat as long as the loop child is true.
|
23
|
+
|
24
|
+
EXAMPLE
|
25
|
+
|
26
|
+
menu [menu] :
|
27
|
+
on_load [script] :
|
28
|
+
run menu
|
29
|
+
prompt [string] : >
|
30
|
+
loop [bool] : true
|
31
|
+
items [can] :
|
32
|
+
hw [mitem] :
|
33
|
+
shortcut [str] : hw
|
34
|
+
description [str] : Run Hello World
|
35
|
+
do [script] :
|
36
|
+
show 'Hello World!'
|
37
|
+
q [mitem] :
|
38
|
+
shortcut [str] : q
|
39
|
+
description [str] : Quit this menu
|
40
|
+
do [script] :
|
41
|
+
put false into menu.loop
|
42
|
+
|
43
|
+
SEE ALSO
|
44
|
+
menu_item
|
@@ -0,0 +1,26 @@
|
|
1
|
+
MENU_ITEM OBJECT TYPE
|
2
|
+
NAME: menu_item
|
3
|
+
SHORTCUT: mitem
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
A CLI menu item. One element in a CLI menu.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
shortcut - string
|
10
|
+
The shortcut may be used to select the menu item.
|
11
|
+
The shortcut child is optional. If it is not provided,
|
12
|
+
the name of the menu item will be used instead.
|
13
|
+
description - string
|
14
|
+
A textual description of the menu item action.
|
15
|
+
The description child is optional. If it is not provided,
|
16
|
+
the value of the menu item will be used instead.
|
17
|
+
do - script
|
18
|
+
The script that will be run if the menu item is selected.
|
19
|
+
|
20
|
+
MESSAGES
|
21
|
+
None
|
22
|
+
|
23
|
+
EXAMPLE
|
24
|
+
|
25
|
+
SEE ALSO
|
26
|
+
menu
|
@@ -0,0 +1,43 @@
|
|
1
|
+
PASTEL OBJECT TYPE
|
2
|
+
NAME: pastel
|
3
|
+
SHORTCUT: pastel
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
Show colorized text with the pastel gem.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
text - string
|
10
|
+
The text that will be colorized.
|
11
|
+
color - string
|
12
|
+
The colors. See pastel for options.
|
13
|
+
|
14
|
+
MESSAGES
|
15
|
+
show - Show the colorized text.
|
16
|
+
|
17
|
+
EXAMPLE
|
18
|
+
|
19
|
+
pastel [can] :
|
20
|
+
on_load [script] :
|
21
|
+
tell pastel.one to show
|
22
|
+
tell pastel.two to show
|
23
|
+
tell pastel.three to show
|
24
|
+
tell pastel.four to show
|
25
|
+
tell pastel.five to show
|
26
|
+
one [pastel] :
|
27
|
+
text [string] : Something New
|
28
|
+
color [string] : white on_green
|
29
|
+
two [pastel] :
|
30
|
+
text [string] : Star Wars
|
31
|
+
color [string] : red
|
32
|
+
three [pastel] :
|
33
|
+
text [string] : Many_Dimensions
|
34
|
+
color [string] : blue
|
35
|
+
four [pastel] :
|
36
|
+
text [string] : As An Arrow
|
37
|
+
color [string] : yellow on_blue
|
38
|
+
five [pastel] :
|
39
|
+
text [string] : Cranium
|
40
|
+
color [string] : white on_yellow
|
41
|
+
|
42
|
+
SEE ALSO
|
43
|
+
colorize
|
@@ -0,0 +1,27 @@
|
|
1
|
+
PROMPT OBJECT TYPE
|
2
|
+
NAME: prompt
|
3
|
+
SHORTCUT: ask
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
CLI prompt for user input.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
prompt - string - '> '
|
10
|
+
The prompt displayed to the user.
|
11
|
+
result - string - none
|
12
|
+
The result with the user's input.
|
13
|
+
|
14
|
+
MESSAGES
|
15
|
+
run - Prompt the user and then set the result.
|
16
|
+
multiline - Show a multiline prompt.
|
17
|
+
|
18
|
+
EXAMPLE
|
19
|
+
|
20
|
+
ask [ask] :
|
21
|
+
prompt [string] : What is your name?
|
22
|
+
result [string] :
|
23
|
+
on_load [script] :
|
24
|
+
run ask
|
25
|
+
show 'Hello, ' + ask.result + '! Thanks for playing'
|
26
|
+
|
27
|
+
SEE ALSO
|
@@ -0,0 +1,34 @@
|
|
1
|
+
SELECT OBJECT TYPE
|
2
|
+
NAME: select
|
3
|
+
SHORTCUT: sel
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
Prompt for user to select from a list of options.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
prompt - string - '> '
|
10
|
+
The prompt displayed to the user.
|
11
|
+
options - container
|
12
|
+
The list of options for the selection list.
|
13
|
+
The name of each option will be presented to the user, but
|
14
|
+
the value will be put in the result.
|
15
|
+
result - string - none
|
16
|
+
The result with the user's selection.
|
17
|
+
|
18
|
+
MESSAGES
|
19
|
+
run - Prompt the user for a selection and then set the result.
|
20
|
+
|
21
|
+
EXAMPLE
|
22
|
+
|
23
|
+
select [select] :
|
24
|
+
prompt [string] : What is your favorite color?
|
25
|
+
options [can] :
|
26
|
+
red : r
|
27
|
+
green : g
|
28
|
+
blue : b
|
29
|
+
result [string] :
|
30
|
+
on_load [script] :
|
31
|
+
run select
|
32
|
+
show select.result
|
33
|
+
|
34
|
+
SEE ALSO
|
@@ -0,0 +1,48 @@
|
|
1
|
+
EACH OBJECT TYPE
|
2
|
+
NAME: each
|
3
|
+
SHORTCUT: each
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
Perform an action for each item in a collection.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
child | word | line | repo - string - none
|
10
|
+
The entity we want to loop for.
|
11
|
+
It will hold the current value while the script is running.
|
12
|
+
in - string - none
|
13
|
+
The collection we will iterate in.
|
14
|
+
In the case of <word> or <line> this will be a string or text.
|
15
|
+
In the case of <repo> this will be the root path.
|
16
|
+
do - script - none
|
17
|
+
The action we want to perform for each found item.
|
18
|
+
|
19
|
+
MESSAGES
|
20
|
+
run - Look through the collecion and perform this for each
|
21
|
+
found item.
|
22
|
+
|
23
|
+
EXAMPLE
|
24
|
+
|
25
|
+
#
|
26
|
+
# Show each child in a container.
|
27
|
+
#
|
28
|
+
|
29
|
+
for [each] :
|
30
|
+
child [alias] :
|
31
|
+
in [alias] : objs
|
32
|
+
do [script] : show for.child
|
33
|
+
objs [can] :
|
34
|
+
1 [string] : one
|
35
|
+
2 [string] : two
|
36
|
+
3 [string] : three
|
37
|
+
|
38
|
+
#
|
39
|
+
# Show each word in a string.
|
40
|
+
#
|
41
|
+
|
42
|
+
for [each] :
|
43
|
+
word [string] :
|
44
|
+
in [string] : one word at a time
|
45
|
+
do [script] : show for.word
|
46
|
+
|
47
|
+
|
48
|
+
SEE ALSO
|
@@ -0,0 +1,38 @@
|
|
1
|
+
REPEAT OBJECT TYPE
|
2
|
+
NAME: repeat
|
3
|
+
SHORTCUT: repeat
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
Run a script a given number of times.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
times integer - 0
|
10
|
+
The number of times to run the script.
|
11
|
+
index integer - 0
|
12
|
+
The current iteration when the repeat loop is running.
|
13
|
+
do - script - none
|
14
|
+
The action we want to perform for iteration of the loop.
|
15
|
+
|
16
|
+
MESSAGES
|
17
|
+
run - Run the script for the given number of times.
|
18
|
+
|
19
|
+
EXAMPLE
|
20
|
+
|
21
|
+
repeat [can] :
|
22
|
+
s [string] :
|
23
|
+
on_load [script] :
|
24
|
+
put $.screen_cols / 2 into repeat.x.times
|
25
|
+
tell repeat.x to run
|
26
|
+
show repeat.s
|
27
|
+
tell repeat.y to run
|
28
|
+
show repeat.s
|
29
|
+
x [repeat] :
|
30
|
+
times [integer] : 30
|
31
|
+
index [integer] : 0
|
32
|
+
do [script] : put repeat.s + '-' into repeat.s
|
33
|
+
y [repeat] :
|
34
|
+
times [integer] : 10
|
35
|
+
index [integer] : 0
|
36
|
+
do [script] : show repeat.y.index
|
37
|
+
|
38
|
+
SEE ALSO
|
@@ -0,0 +1,25 @@
|
|
1
|
+
MARKDOWN OBJECT TYPE
|
2
|
+
NAME: markdown
|
3
|
+
SHORTCUT: md
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
Markdown data in a text string.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
None
|
10
|
+
|
11
|
+
MESSAGES
|
12
|
+
show - Show the markdown data in the terminal.
|
13
|
+
page - Show the markdown data in the terminal, paginated.
|
14
|
+
|
15
|
+
EXAMPLE
|
16
|
+
|
17
|
+
md [can] :
|
18
|
+
f [file] :
|
19
|
+
on_load [script] :
|
20
|
+
put $.gloo.projects + "/o/data/txt.md" into md.f
|
21
|
+
tell md.f to read (md.data)
|
22
|
+
tell md.data to show
|
23
|
+
data [md] :
|
24
|
+
|
25
|
+
SEE ALSO
|
@@ -0,0 +1,46 @@
|
|
1
|
+
TABLE OBJECT TYPE
|
2
|
+
NAME: table
|
3
|
+
SHORTCUT: tbl
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
A data table.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
headers - container
|
10
|
+
A list of headers.
|
11
|
+
The name of the header object needs to be the same as the
|
12
|
+
name of the object in the data container.
|
13
|
+
The value of the header is what will be displayed.
|
14
|
+
data - container
|
15
|
+
The table's data.
|
16
|
+
The data container will have one or more containers, each
|
17
|
+
of which represents one row of data.
|
18
|
+
|
19
|
+
MESSAGES
|
20
|
+
show - Show the contents of the table in the CLI.
|
21
|
+
|
22
|
+
EXAMPLE
|
23
|
+
|
24
|
+
t [tbl] :
|
25
|
+
on_load [script] :
|
26
|
+
tell t to show
|
27
|
+
headers [can] :
|
28
|
+
name : Name
|
29
|
+
phone : Tel
|
30
|
+
notes : Notes
|
31
|
+
data [alias] : table_data
|
32
|
+
table_data [can] :
|
33
|
+
1 [can] :
|
34
|
+
name : Joe
|
35
|
+
phone : 312-555-1212
|
36
|
+
notes : Play golf with Joe
|
37
|
+
2 [can] :
|
38
|
+
name : Sally
|
39
|
+
phone : 708-555-1212
|
40
|
+
notes : met Sally at the meetup last week
|
41
|
+
3 [can] :
|
42
|
+
name : Frank
|
43
|
+
phone : 312-555-1213
|
44
|
+
notes : Frank Lee Speaking
|
45
|
+
|
46
|
+
SEE ALSO
|
@@ -0,0 +1,35 @@
|
|
1
|
+
GIT OBJECT TYPE
|
2
|
+
NAME: git_repo
|
3
|
+
SHORTCUT: git
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
Reference to a git repository in the file system.
|
7
|
+
The value of the git_repo objectd is a string.
|
8
|
+
There are no children needed.
|
9
|
+
|
10
|
+
CHILDREN
|
11
|
+
None
|
12
|
+
|
13
|
+
MESSAGES
|
14
|
+
validate - Validate that this is a git repo.
|
15
|
+
check_changes - Check to see if there are any pending changes.
|
16
|
+
get_changes - Get the list of pending changes.
|
17
|
+
commit - Commit changes.
|
18
|
+
get_branch - Get the current branch.
|
19
|
+
|
20
|
+
EXAMPLE
|
21
|
+
|
22
|
+
changes [can] :
|
23
|
+
on_load [script] :
|
24
|
+
show "Finding repos with local changes..."
|
25
|
+
put $.user.home + "/dev" into changes.for.in
|
26
|
+
run changes.for
|
27
|
+
show "Done."
|
28
|
+
for [each] :
|
29
|
+
repo [git] :
|
30
|
+
in [string] :
|
31
|
+
do [script] :
|
32
|
+
tell changes.for.repo to check_changes
|
33
|
+
if it then show changes.for.repo
|
34
|
+
|
35
|
+
SEE ALSO
|
@@ -0,0 +1,23 @@
|
|
1
|
+
DATE OBJECT TYPE
|
2
|
+
NAME: date
|
3
|
+
SHORTCUT: date
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
A reference to a date, but without time.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
None
|
10
|
+
|
11
|
+
MESSAGES
|
12
|
+
now - Set to the current system date.
|
13
|
+
|
14
|
+
EXAMPLE
|
15
|
+
|
16
|
+
time [can] :
|
17
|
+
t [time] :
|
18
|
+
on_load [script] :
|
19
|
+
tell time.t to now
|
20
|
+
show time.t
|
21
|
+
|
22
|
+
SEE ALSO
|
23
|
+
datetime, time
|
@@ -0,0 +1,24 @@
|
|
1
|
+
DATETIME OBJECT TYPE
|
2
|
+
NAME: datetime
|
3
|
+
SHORTCUT: dt
|
4
|
+
|
5
|
+
DESCRIPTION
|
6
|
+
A reference to a date and time.
|
7
|
+
|
8
|
+
CHILDREN
|
9
|
+
None
|
10
|
+
|
11
|
+
MESSAGES
|
12
|
+
now - Set to the current system date and time.
|
13
|
+
|
14
|
+
EXAMPLE
|
15
|
+
|
16
|
+
dt [can] :
|
17
|
+
d [datetime] :
|
18
|
+
on_load [script] :
|
19
|
+
tell dt.d to now
|
20
|
+
show dt.d
|
21
|
+
next [script] : put '1 week from now' into dt.d
|
22
|
+
|
23
|
+
SEE ALSO
|
24
|
+
date, time
|