mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
400 B
Go
30 lines
400 B
Go
5 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"log"
|
||
|
"os"
|
||
|
"strings"
|
||
|
|
||
|
"github.com/spf13/cobra"
|
||
|
)
|
||
|
|
||
|
var VERSION = "0.0.1"
|
||
|
|
||
|
var rootCmd = &cobra.Command{
|
||
|
Use: "tk",
|
||
|
Short: "Kubernetes CD assembler",
|
||
|
Version: VERSION,
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
log.SetFlags(0)
|
||
|
|
||
|
rootCmd.SetArgs(os.Args[1:])
|
||
|
if err := rootCmd.Execute(); err != nil {
|
||
|
e := err.Error()
|
||
|
fmt.Println(strings.ToUpper(e[:1]) + e[1:])
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|