mirror of
https://github.com/dragonheim/gagent.git
synced 2025-04-26 13:58:59 -07:00
fix: updating the examples to reflect the desired format.
This commit is contained in:
parent
aa0e396e35
commit
17b097b1b7
5 changed files with 51 additions and 25 deletions
21
.drone.yml
21
.drone.yml
|
@ -7,10 +7,10 @@ platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
trigger:
|
# trigger:
|
||||||
branch:
|
# branch:
|
||||||
exclude:
|
# exclude:
|
||||||
- main
|
# - main
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
depth: 1
|
depth: 1
|
||||||
|
@ -39,3 +39,16 @@ steps:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_auth
|
from_secret: docker_auth
|
||||||
|
|
||||||
|
- name: Send Status To Datadog
|
||||||
|
image: masci/drone-datadog
|
||||||
|
settings:
|
||||||
|
api_key:
|
||||||
|
from_secret: Datadog
|
||||||
|
events:
|
||||||
|
- title: "Build failure"
|
||||||
|
text: "Build ${DRONE_BUILD_NUMBER}"
|
||||||
|
alert_type: "error"
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- failure
|
10
README.md
10
README.md
|
@ -18,10 +18,10 @@ Imagine, for a moment, that you are on Mars and need to perform a search for dat
|
||||||
6 : # - gravity measurements
|
6 : # - gravity measurements
|
||||||
7 : # - gravity fluctuations
|
7 : # - gravity fluctuations
|
||||||
8 : # HINT END
|
8 : # HINT END
|
||||||
9 : function hello_world() {
|
9 : proc hello_earth {} {
|
||||||
10: console.log("Hello Earth, does tempurature various alter specific gravity?")
|
10 : puts "Hello Earth, does tempurature variations alter specific gravity?"
|
||||||
11 : }
|
11 : }
|
||||||
12: console.log(hello_world())
|
12 : hello_earth
|
||||||
```
|
```
|
||||||
Lines 1 - 3 are simple comments
|
Lines 1 - 3 are simple comments
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@ Line 4 Tells the G'Agent router that this is the start of the hints to route fo
|
||||||
|
|
||||||
Lines 5 - 7 are a list of hints that the router will use to determine which router(s) may have domain specific information.
|
Lines 5 - 7 are a list of hints that the router will use to determine which router(s) may have domain specific information.
|
||||||
|
|
||||||
Lines 9 - 11 are a tcl function that will be executed on the worker before sending the results back to the client.
|
Lines 9 - 11 are a tcl procedure that will be executed on the worker before sending the results back to the client.
|
||||||
|
|
||||||
Line 12 executes the function defined above.
|
Line 12 executes the procedure defined above.
|
||||||
|
|
||||||
## History
|
## History
|
||||||
More information can be found in the original [documentation](http://www.cs.dartmouth.edu/~dfk/agents/pub/agents/doc.5.1.ps.gz), and in the project's [wiki](https://git.dragonheim.net/dragonheim/gagent/wiki/_pages).
|
More information can be found in the original [documentation](http://www.cs.dartmouth.edu/~dfk/agents/pub/agents/doc.5.1.ps.gz), and in the project's [wiki](https://git.dragonheim.net/dragonheim/gagent/wiki/_pages).
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
#!/usr/bin/env tcl
|
#####################
|
||||||
#
|
### Add 2 numbers ###
|
||||||
#
|
#####################
|
||||||
|
# HINT START
|
||||||
|
# - math
|
||||||
|
# - addition
|
||||||
|
# HINT END
|
||||||
set val1 1
|
set val1 1
|
||||||
set val2 2
|
set val2 2
|
||||||
|
|
||||||
|
|
13
examples/hello-earth.tcl
Normal file
13
examples/hello-earth.tcl
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
###################
|
||||||
|
### Hello Earth ###
|
||||||
|
###################
|
||||||
|
# HINT START
|
||||||
|
# - console
|
||||||
|
# - gravity measurements
|
||||||
|
# - gravity fluctuations
|
||||||
|
# HINT END
|
||||||
|
proc hello_earth {} {
|
||||||
|
puts "Hello Earth, does tempurature variations alter specific gravity?"
|
||||||
|
}
|
||||||
|
|
||||||
|
hello_earth
|
|
@ -1,4 +0,0 @@
|
||||||
#!/usr/bin/env tcl
|
|
||||||
#
|
|
||||||
#
|
|
||||||
puts {hello, world}
|
|
Loading…
Add table
Add a link
Reference in a new issue