-
Notifications
You must be signed in to change notification settings - Fork 82
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 #304 from redhatrises/goreleaser_updates
goreleaser updates
- Loading branch information
Showing
10 changed files
with
136 additions
and
19 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/compliance-masonry | ||
/masonry | ||
*.swp | ||
*.out | ||
/build |
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,17 +1,28 @@ | ||
builds: | ||
- binary: masonry | ||
main: ./cmd/masonry/masonry.go | ||
ldflags: -s -w -X github.com/opencontrol/compliance-masonry/version.Version={{.Version}} -X github.com/opencontrol/compliance-masonry/version.Commit={{.Commit}} -X github.com/opencontrol/compliance-masonry/version.Date={{.Date}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
|
||
- binary: compliance-masonry | ||
main: ./masonry-go.go ./diff.go | ||
ldflags: -s -w -X github.com/opencontrol/compliance-masonry/version.Version={{.Version}} | ||
main: ./cmd/compliance-masonry/compliance-masonry.go | ||
ldflags: -s -w -X github.com/opencontrol/compliance-masonry/version.Version={{.Version}} -X github.com/opencontrol/compliance-masonry/version.Commit={{.Commit}} -X github.com/opencontrol/compliance-masonry/version.Date={{.Date}} | ||
env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- 386 | ||
- amd64 | ||
- arm | ||
- arm64 | ||
|
||
nfpm: | ||
|
@@ -22,10 +33,10 @@ nfpm: | |
- rpm | ||
|
||
brew: | ||
name: oscalkit | ||
name: compliance-masonry | ||
github: | ||
owner: opencontrol | ||
name: homebrew-oscalkit | ||
name: homebrew-compliance-masonry | ||
commit_author: | ||
name: OpenControl | ||
email: [email protected] | ||
|
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
File renamed without changes.
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,24 @@ | ||
/* | ||
Copyright (C) 2018 OpenControl Contributors. See LICENSE.md for license. | ||
*/ | ||
|
||
package version | ||
|
||
import ( | ||
"io" | ||
|
||
"github.com/opencontrol/compliance-masonry/version" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// NewCmdVersion prints out the version | ||
func NewCmdVersion(out io.Writer) *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "version", | ||
Short: "Display version", | ||
Run: func(cmd *cobra.Command, args []string) { | ||
version.PrintVersion() | ||
}, | ||
} | ||
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
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,30 @@ | ||
/* | ||
Copyright (C) 2018 OpenControl Contributors. See LICENSE.md for license. | ||
*/ | ||
|
||
package masonry | ||
|
||
var usageTemplate = `{{if gt (len .Aliases) 0}} | ||
Aliases: | ||
{{.NameAndAliases}}{{end}}Usage: | ||
{{.CommandPath}} [global-options]{{if .HasAvailableSubCommands}} COMMAND{{end}}{{if .HasAvailableFlags}} [command-options]{{end}}{{if .HasExample}} | ||
Examples: | ||
{{.Example}}{{end}}{{if .HasAvailableSubCommands}} | ||
Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}} | ||
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableInheritedFlags}} | ||
Global Options: | ||
{{.InheritedFlags.FlagUsages | trimTrailingWhitespaces}}{{end}}{{if .HasAvailableLocalFlags}} | ||
Options: | ||
{{.LocalFlags.FlagUsages | trimTrailingWhitespaces}}{{end}} | ||
{{if .HasHelpSubCommands}} | ||
Additional help topics:{{range .Commands}}{{if .IsAdditionalHelpTopicCommand}} | ||
{{rpad .CommandPath .CommandPathPadding}} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableSubCommands}} | ||
See "{{.CommandPath}} help <TOPIC>" for more information on a specific topic. | ||
See "{{.CommandPath}} <COMMAND> --help" for more information about a command. | ||
{{end}} | ||
` |
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