Explorar el Código

Rename set message to set flags

Blallo hace 3 años
padre
commit
a3430dfdf2
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4 4
      cli/papero/set.go

+ 4 - 4
cli/papero/set.go

@@ -17,7 +17,7 @@ var setVerbs cli.CommandMap
 
 
 func init() {
 func init() {
 	setVerbs = cli.CommandMap{
 	setVerbs = cli.CommandMap{
-		"message": SetMessageCmd{},
+		"flags": SetFlagsCmd{},
 		// "subscribe": SetSubscribedCmd{},
 		// "subscribe": SetSubscribedCmd{},
 		// "unsubscribe": SetUnsubscribedCmd{},
 		// "unsubscribe": SetUnsubscribedCmd{},
 	}
 	}
@@ -52,9 +52,9 @@ func (s SetCmd) Help(w io.Writer, set *flag.FlagSet) {
 
 
 // VERBS
 // VERBS
 
 
-type SetMessageCmd struct{}
+type SetFlagsCmd struct{}
 
 
-func (sm SetMessageCmd) Func(args []string) error {
+func (sm SetFlagsCmd) Func(args []string) error {
 	if Session.Info.Opts.Debug {
 	if Session.Info.Opts.Debug {
 		Log.Debug("enter set message")
 		Log.Debug("enter set message")
 	}
 	}
@@ -118,7 +118,7 @@ func (sm SetMessageCmd) Func(args []string) error {
 	return imaputils.SetFlags(Session.Config, &opts)
 	return imaputils.SetFlags(Session.Config, &opts)
 }
 }
 
 
-func (sm SetMessageCmd) Help(w io.Writer, set *flag.FlagSet) {
+func (sm SetFlagsCmd) Help(w io.Writer, set *flag.FlagSet) {
 	fmt.Fprintf(w, "USAGE: %s set message [opts] MAILBOX MESSAGE_ID_OR_RANGE [MESSAGE_ID_OR_RANGE [MESSAGE_ID_OR_RANGE ...]]\n", Session.Info.Name)
 	fmt.Fprintf(w, "USAGE: %s set message [opts] MAILBOX MESSAGE_ID_OR_RANGE [MESSAGE_ID_OR_RANGE [MESSAGE_ID_OR_RANGE ...]]\n", Session.Info.Name)
 	fmt.Fprintln(w, "\nMESSAGE_ID_OR_RANGE being a single message id or a git-like range")
 	fmt.Fprintln(w, "\nMESSAGE_ID_OR_RANGE being a single message id or a git-like range")
 	fmt.Fprintln(w, "Example:")
 	fmt.Fprintln(w, "Example:")