-
Notifications
You must be signed in to change notification settings - Fork 38
/
main.go
28 lines (23 loc) · 673 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package main
import (
"os"
"github.com/K-Phoen/semver-release-action/internal/pkg/event"
"github.com/K-Phoen/semver-release-action/internal/pkg/git"
"github.com/K-Phoen/semver-release-action/internal/pkg/release"
"github.com/K-Phoen/semver-release-action/internal/pkg/semver"
"github.com/spf13/cobra"
)
func main() {
rootCmd := &cobra.Command{
Use: "bumper",
}
rootCmd.SetOut(os.Stdout)
rootCmd.AddCommand(semver.Command())
rootCmd.AddCommand(release.Command())
rootCmd.AddCommand(event.GuardCommand())
rootCmd.AddCommand(event.IncrementCommand())
rootCmd.AddCommand(git.LatestTagCommand())
if err := rootCmd.Execute(); err != nil {
os.Exit(1)
}
}