You've already forked go-semantic-release
build(travis): add release config
This commit is contained in:
@@ -7,8 +7,6 @@ import (
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(releaseCmd)
|
||||
releaseCmd.Flags().BoolP("force", "f", false, "")
|
||||
|
||||
}
|
||||
|
||||
var releaseCmd = &cobra.Command{
|
||||
@@ -25,7 +23,7 @@ var releaseCmd = &cobra.Command{
|
||||
return err
|
||||
}
|
||||
|
||||
force, err := cmd.Flags().GetBool("force")
|
||||
force, err := cmd.Flags().GetBool("no-cache")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@@ -23,7 +23,8 @@ var rootCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
//Execute rootCmd
|
||||
func Execute() {
|
||||
func Execute(version string) {
|
||||
rootCmd.Version = version
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
|
||||
@@ -4,6 +4,8 @@ import (
|
||||
"github.com/Nightapes/go-semantic-release/cmd/go-semantic-release/commands"
|
||||
)
|
||||
|
||||
var version string
|
||||
|
||||
func main() {
|
||||
commands.Execute()
|
||||
commands.Execute(version)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user