Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "gosubst", Short: "substitutes values of variables file in template files", Long: `gosubst copies stardard input to standard output replacing all variables present in values file`, Run: func(cmd *cobra.Command, args []string) { subst, err := gosubst.NewSubst(valuesFile, valuesType, os.Stdin, os.Stdout) if err != nil { log.Fatal(err) } if err := subst.Render(); err != nil { log.Fatal(err) } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.