Add function to generate script files (and generate them)
parent
e27e798a38
commit
fae57a7e3f
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Running after creating users"
|
||||
$TRM_CONFIG | describe
|
||||
$TRM_CONFIG
|
||||
}
|
||||
echo "Executing after Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Running before creating users"
|
||||
echo $TRM_VERSION
|
||||
}
|
||||
echo "Executing before Task with task config: " $cfg
|
||||
echo "The global config is: " $TRM_CONFIG
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -0,0 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
@ -1,9 +1,5 @@
|
||||
|
||||
def main [cfg] {
|
||||
$cfg | get users | each {|$it| create_user $it } | ignore
|
||||
echo "Executing Task with config" $cfg
|
||||
}
|
||||
|
||||
def create_user [user] {
|
||||
echo "This would create a user with:"
|
||||
echo $user
|
||||
echo
|
||||
}
|
||||
|
Loading…
Reference in New Issue