-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from srevinsaju/develop
v1.6.0
- Loading branch information
Showing
92 changed files
with
2,904 additions
and
1,401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ on: | |
pull_request: | ||
branches: | ||
- 'v1' | ||
- 'develop' | ||
|
||
permissions: | ||
contents: write | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
togomak { | ||
version = 2 | ||
} | ||
|
||
|
||
stage "home" { | ||
script = "echo ${env("HOME")}" | ||
} | ||
|
||
stage "non_existent_env" { | ||
script = "echo ${env("THIS_SHOULD_NOT_EXIST", "env does not exist")}" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
togomak { | ||
version = 2 | ||
} | ||
|
||
stage "another_stage" { | ||
script = "echo this is coming from module" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
togomak { | ||
version = 2 | ||
} | ||
|
||
stage "example" { | ||
name = "example" | ||
script = "echo hello world" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
togomak { | ||
version = 2 | ||
} | ||
|
||
stage "example_2" { | ||
script = "echo bye world" | ||
} |
2 changes: 1 addition & 1 deletion
2
examples/recursive/bye.hcl → examples/recursive/bye/togomak.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
togomak { | ||
version = 1 | ||
version = 2 | ||
} | ||
|
||
stage "echo" { | ||
|
2 changes: 1 addition & 1 deletion
2
examples/recursive/hello.hcl → examples/recursive/hello/togomak.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
togomak { | ||
version = 1 | ||
version = 2 | ||
} | ||
|
||
stage "echo" { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package behavior | ||
|
||
type Child struct { | ||
// Enabled is the flag to indicate whether the program is running in child mode | ||
Enabled bool | ||
|
||
// Parent is the flag to indicate whether the program is running in parent mode | ||
Parent string | ||
|
||
// ParentParams is the list of parameters to be passed to the parent | ||
ParentParams []string | ||
} | ||
|
||
type Behavior struct { | ||
initialized bool | ||
|
||
// Unattended is the flag to indicate whether the program is running in unattended mode | ||
Unattended bool | ||
|
||
// Ci is the flag to indicate whether the program is running in CI mode | ||
Ci bool | ||
|
||
// Child is the flag to indicate whether the program is running in child mode | ||
Child Child | ||
|
||
DryRun bool | ||
} | ||
|
||
func NewDefaultBehavior() Behavior { | ||
return Behavior{ | ||
Unattended: false, | ||
Ci: false, | ||
DryRun: true, | ||
Child: Child{ | ||
Enabled: false, | ||
Parent: "", | ||
ParentParams: []string{}, | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.