parent
39d0371d15
commit
6be3c11119
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"github.com/helmfile/helmfile/pkg/config"
|
"github.com/helmfile/helmfile/pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewFetchCmd returns diff subcmd
|
// NewFetchCmd returns fetch subcmd
|
||||||
func NewFetchCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
func NewFetchCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
||||||
fetchOptions := config.NewFetchOptions()
|
fetchOptions := config.NewFetchOptions()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ func toCLIError(g *config.GlobalImpl, err error) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewRootCmd creates the root command for the CLI.
|
// NewRootCmd creates the root command for the CLI.
|
||||||
func NewRootCmd(globalConfig *config.GlobalOptions, args []string) (*cobra.Command, error) {
|
func NewRootCmd(globalConfig *config.GlobalOptions) (*cobra.Command, error) {
|
||||||
cmd := &cobra.Command{
|
cmd := &cobra.Command{
|
||||||
Use: "helmfile",
|
Use: "helmfile",
|
||||||
Short: globalUsage,
|
Short: globalUsage,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"github.com/helmfile/helmfile/pkg/config"
|
"github.com/helmfile/helmfile/pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewWriteValuesCmd returns write subcmd
|
// NewWriteValuesCmd returns write-values subcmd
|
||||||
func NewWriteValuesCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
func NewWriteValuesCmd(globalCfg *config.GlobalImpl) *cobra.Command {
|
||||||
writeValuesOptions := config.NewWriteValuesOptions()
|
writeValuesOptions := config.NewWriteValuesOptions()
|
||||||
|
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -22,7 +22,7 @@ func main() {
|
||||||
}()
|
}()
|
||||||
|
|
||||||
globalConfig := new(config.GlobalOptions)
|
globalConfig := new(config.GlobalOptions)
|
||||||
rootCmd, err := cmd.NewRootCmd(globalConfig, os.Args[1:])
|
rootCmd, err := cmd.NewRootCmd(globalConfig)
|
||||||
errors.HandleExitCoder(err)
|
errors.HandleExitCoder(err)
|
||||||
|
|
||||||
if err := rootCmd.Execute(); err != nil {
|
if err := rootCmd.Execute(); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue