-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
44 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
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,11 +1,11 @@ | ||
/* | ||
Copyright © 2022 NAME HERE <EMAIL ADDRESS> | ||
*/ | ||
package main | ||
|
||
import "drupal9ci/cmd" | ||
import ( | ||
"drupal9ci/cmd" | ||
"drupal9ci/scripts" | ||
_ "embed" | ||
) | ||
|
||
func main() { | ||
cmd.Execute() | ||
cmd.Execute(scripts.LoadSetupScripts()) | ||
} |
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,36 @@ | ||
package scripts | ||
|
||
import _ "embed" | ||
|
||
//go:embed setup-bitbucket.sh | ||
var setupBitbucket string | ||
|
||
//go:embed setup-circleci.sh | ||
var setupCircleCI string | ||
|
||
//go:embed setup-github-actions.sh | ||
var setupGitHubActions string | ||
|
||
//go:embed setup-gitlab-ci.sh | ||
var setupGitLabCI string | ||
|
||
//go:embed setup-travis-ci.sh | ||
var setupTravisCI string | ||
|
||
type SetupScripts struct { | ||
BitBucket string | ||
CircleCI string | ||
GitHubActions string | ||
GitLabCI string | ||
TravisCI string | ||
} | ||
|
||
func LoadSetupScripts() *SetupScripts { | ||
return &SetupScripts{ | ||
BitBucket: setupBitbucket, | ||
CircleCI: setupCircleCI, | ||
GitHubActions: setupGitHubActions, | ||
GitLabCI: setupGitLabCI, | ||
TravisCI: setupTravisCI, | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.