mirror of
https://github.com/d3m0k1d/ciweave.git
synced 2026-03-14 19:02:43 +00:00
feat: add logger logic
This commit is contained in:
22
cmd/main.go
22
cmd/main.go
@@ -0,0 +1,22 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"os"
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "ciweave",
|
||||
Short: "automatic pipeline generator",
|
||||
Long: "ciweave is a automatic pipeline generator for ci/cd written in golang",
|
||||
}
|
||||
|
||||
func Execute() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
Execute()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user