cmd/toot.go
changeset 17 ab1aa9652791
parent 15 8ac069eaa817
child 35 61ed03c3f134
equal deleted inserted replaced
16:8939959991b3 17:ab1aa9652791
    33 	Short:   "Post a message (toot)",
    33 	Short:   "Post a message (toot)",
    34 	Example: `  madonctl toot message
    34 	Example: `  madonctl toot message
    35   madonctl toot --spoiler Warning "Hello, World"
    35   madonctl toot --spoiler Warning "Hello, World"
    36   madonctl status post --media-ids ID1,ID2 "Here are the photos"
    36   madonctl status post --media-ids ID1,ID2 "Here are the photos"
    37   madonctl post --sensitive --file image.jpg Image
    37   madonctl post --sensitive --file image.jpg Image
    38   madonctl post --text-file message.txt`,
    38   madonctl toot --text-file message.txt`,
    39 	RunE: func(cmd *cobra.Command, args []string) error {
    39 	RunE: func(cmd *cobra.Command, args []string) error {
    40 		if err := madonInit(true); err != nil {
    40 		if err := madonInit(true); err != nil {
    41 			return err
    41 			return err
    42 		}
    42 		}
    43 		return statusSubcommandRunE("post", args)
    43 		return statusSubcommandRunE("post", args)