Compare commits

..

No commits in common. "main" and "v0.0.2" have entirely different histories.
main ... v0.0.2

View File

@ -22,14 +22,8 @@ type Config struct {
var rootCmd = &cobra.Command{
Use: "gomailer",
Short: "use it to test email templates",
Args: cobra.MinimumNArgs(1),
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
log.Printf("Templates: %v", args)
for _, arg := range args {
gomailer.Inline(arg)
}
},
// Run: func(cmd *cobra.Command, args []string) { },
}
// Execute adds all child commands to the root command and sets flags appropriately.
@ -42,7 +36,6 @@ func Execute() {
}
func init() {
cobra.MousetrapHelpText = "" // disable warning on windows for drag n drop to exe
cobra.OnInitialize(initConfig)
rootCmd.CompletionOptions.DisableDefaultCmd = true
rootCmd.PersistentFlags().StringVar(&cfgFile, "config", "", "config file (default is $HOME/.gomailer.yaml)")