37 lines
986 B
Go
37 lines
986 B
Go
/*
|
|
Copyright © 2026 NAME HERE <EMAIL ADDRESS>
|
|
|
|
*/
|
|
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// convertCmd represents the convert command
|
|
var convertCmd = &cobra.Command{
|
|
Use: "convert",
|
|
Short: "Convert a helmfile to a set of argocd applications",
|
|
Long: `Takes a helmfile .yaml or .yaml.gotmpl file as input and outputs
|
|
a set of .yaml files describing argocd Applications that are built from the
|
|
releases section.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("convert called")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(convertCmd)
|
|
|
|
// Here you will define your flags and configuration settings.
|
|
|
|
// Cobra supports Persistent Flags which will work for this command
|
|
// and all subcommands, e.g.:
|
|
// convertCmd.PersistentFlags().String("foo", "", "A help for foo")
|
|
|
|
// Cobra supports local flags which will only run when this command
|
|
// is called directly, e.g.:
|
|
// convertCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
|
|
}
|