examples: Add missing mcl files

I forgot to add these, sorry.
This commit is contained in:
James Shubin
2019-02-03 09:58:04 -05:00
parent 4a3e2c3611
commit f61e1cb36d
6 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import "third.mcl"
$answer = 42 + $third.three

View File

@@ -0,0 +1,20 @@
import "fmt"
import "h2g2.mcl"
import "mod1/"
# imports as example1
import "git://github.com/purpleidea/mgmt-example1/"
$answer = $h2g2.answer
test "hello" {
anotherstr => fmt.printf("the answer is: %d", $answer),
}
test "hello2" {
anotherstr => fmt.printf("i imported local: %s", $mod1.name),
}
test "hello3" {
anotherstr => fmt.printf("i imported remote: %s", $example1.name),
}

View File

@@ -0,0 +1 @@
$name = "this is module mod1"

View File

@@ -0,0 +1 @@
$three = 3

View File

@@ -0,0 +1,2 @@
# this is a pretty lame module!
$name = "i am github.com/purpleidea/mgmt-example1/"

View File

@@ -0,0 +1,6 @@
# this is a pretty lame module!
$name = "i am github.com/purpleidea/mgmt-example2/" # + $hmmm
# import another module
import "git://github.com/purpleidea/mgmt-example1/"
$hmmm = $example1.name