-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #31 from FalcoSuessgott/envs
Support configuration via env vars
- Loading branch information
Showing
22 changed files
with
432 additions
and
175 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: hashicorp/setup-terraform@v3 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22.2' | ||
cache: false | ||
- run: | | ||
make build | ||
build/terramaid -w test/ | ||
cat Terramaid.md |
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 +1,2 @@ | ||
brew "go" | ||
brew "go" | ||
brew "gofumpt" |
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,24 +1,25 @@ | ||
package cmd | ||
|
||
import ( | ||
"log" | ||
|
||
"github.com/spf13/cobra" | ||
"github.com/spf13/cobra/doc" | ||
) | ||
|
||
var docsCmd = &cobra.Command{ | ||
Use: "docs", | ||
Short: "Generate documentation for the CLI", | ||
SilenceUsage: true, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
err := doc.GenMarkdownTree(RootCmd, "./docs") | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
}, | ||
} | ||
func docsCmd() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "docs", | ||
Short: "Generate documentation for the CLI", | ||
SilenceUsage: true, | ||
Hidden: true, | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
err := doc.GenMarkdownTree(cmd.Root(), "./docs") | ||
if err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
}, | ||
} | ||
|
||
func init() { | ||
RootCmd.AddCommand(docsCmd) | ||
return cmd | ||
} |
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.