62 accountFollowRequestsSubcommand.Flags().BoolVar(&accountsOpts.list, "list", false, "List pending follow requests") |
63 accountFollowRequestsSubcommand.Flags().BoolVar(&accountsOpts.list, "list", false, "List pending follow requests") |
63 accountFollowRequestsSubcommand.Flags().BoolVar(&accountsOpts.acceptFR, "accept", false, "Accept the follow request from the account ID") |
64 accountFollowRequestsSubcommand.Flags().BoolVar(&accountsOpts.acceptFR, "accept", false, "Accept the follow request from the account ID") |
64 accountFollowRequestsSubcommand.Flags().BoolVar(&accountsOpts.rejectFR, "reject", false, "Reject the follow request from the account ID") |
65 accountFollowRequestsSubcommand.Flags().BoolVar(&accountsOpts.rejectFR, "reject", false, "Reject the follow request from the account ID") |
65 |
66 |
66 accountBlockSubcommand.Flags().BoolVarP(&accountsOpts.unset, "unset", "", false, "Unblock the account") |
67 accountBlockSubcommand.Flags().BoolVarP(&accountsOpts.unset, "unset", "", false, "Unblock the account") |
|
68 |
67 accountMuteSubcommand.Flags().BoolVarP(&accountsOpts.unset, "unset", "", false, "Unmute the account") |
69 accountMuteSubcommand.Flags().BoolVarP(&accountsOpts.unset, "unset", "", false, "Unmute the account") |
68 accountMuteSubcommand.Flags().BoolVarP(&accountsOpts.muteNotifications, "notifications", "", true, "Mute the notifications") |
70 accountMuteSubcommand.Flags().BoolVarP(&accountsOpts.muteNotifications, "notifications", "", true, "Mute the notifications") |
69 accountFollowSubcommand.Flags().BoolVarP(&accountsOpts.unset, "unset", "", false, "Unfollow the account") |
71 accountFollowSubcommand.Flags().BoolVarP(&accountsOpts.unset, "unset", "", false, "Unfollow the account") |
70 accountFollowSubcommand.Flags().StringVarP(&accountsOpts.remoteUID, "remote", "r", "", "Follow remote account (user@domain)") |
72 accountFollowSubcommand.Flags().StringVarP(&accountsOpts.remoteUID, "remote", "r", "", "Follow remote account (user@domain)") |
71 |
73 |
72 accountRelationshipsSubcommand.Flags().StringVar(&accountsOpts.accountIDs, "account-ids", "", "Comma-separated list of account IDs") |
74 accountRelationshipsSubcommand.Flags().StringVar(&accountsOpts.accountIDs, "account-ids", "", "Comma-separated list of account IDs") |
73 |
75 |
74 accountReportsSubcommand.Flags().StringVar(&accountsOpts.statusIDs, "status-ids", "", "Comma-separated list of status IDs") |
76 accountReportsSubcommand.Flags().StringVar(&accountsOpts.statusIDs, "status-ids", "", "Comma-separated list of status IDs") |
75 accountReportsSubcommand.Flags().StringVar(&accountsOpts.comment, "comment", "", "Report comment") |
77 accountReportsSubcommand.Flags().StringVar(&accountsOpts.comment, "comment", "", "Report comment") |
76 accountReportsSubcommand.Flags().BoolVar(&accountsOpts.list, "list", false, "List current user reports") |
78 accountReportsSubcommand.Flags().BoolVar(&accountsOpts.list, "list", false, "List current user reports") |
|
79 |
|
80 accountSearchSubcommand.Flags().BoolVar(&accountsOpts.following, "following", false, "Restrict search to accounts you are following") |
77 |
81 |
78 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.displayName, "display-name", "", "User display name") |
82 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.displayName, "display-name", "", "User display name") |
79 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.note, "note", "", "User note (a.k.a. bio)") |
83 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.note, "note", "", "User note (a.k.a. bio)") |
80 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.avatar, "avatar", "", "User avatar image") |
84 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.avatar, "avatar", "", "User avatar image") |
81 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.header, "header", "", "User header image") |
85 accountUpdateSubcommand.Flags().StringVar(&accountsOpts.header, "header", "", "User header image") |
143 Short: "Display the user's muted accounts", |
147 Short: "Display the user's muted accounts", |
144 RunE: func(cmd *cobra.Command, args []string) error { |
148 RunE: func(cmd *cobra.Command, args []string) error { |
145 return accountSubcommandsRunE(cmd.Name(), args) |
149 return accountSubcommandsRunE(cmd.Name(), args) |
146 }, |
150 }, |
147 }, |
151 }, |
148 &cobra.Command{ |
152 accountSearchSubcommand, |
149 Use: "search TEXT", |
|
150 Short: "Search for user accounts", |
|
151 Long: `Search for user accounts. |
|
152 The server will lookup an account remotely if the search term is in the |
|
153 username@domain format and not yet in the database.`, |
|
154 RunE: func(cmd *cobra.Command, args []string) error { |
|
155 return accountSubcommandsRunE(cmd.Name(), args) |
|
156 }, |
|
157 }, |
|
158 accountStatusesSubcommand, |
153 accountStatusesSubcommand, |
159 accountFollowRequestsSubcommand, |
154 accountFollowRequestsSubcommand, |
160 accountFollowSubcommand, |
155 accountFollowSubcommand, |
161 accountBlockSubcommand, |
156 accountBlockSubcommand, |
162 accountMuteSubcommand, |
157 accountMuteSubcommand, |
163 accountRelationshipsSubcommand, |
158 accountRelationshipsSubcommand, |
164 accountReportsSubcommand, |
159 accountReportsSubcommand, |
165 accountUpdateSubcommand, |
160 accountUpdateSubcommand, |
166 } |
161 } |
167 |
162 |
|
163 var accountSearchSubcommand = &cobra.Command{ |
|
164 Use: "search TEXT", |
|
165 Short: "Search for user accounts", |
|
166 Long: `Search for user accounts. |
|
167 er will lookup an account remotely if the search term is in the |
|
168 @domain format and not yet in the database.`, |
|
169 RunE: func(cmd *cobra.Command, args []string) error { |
|
170 return accountSubcommandsRunE(cmd.Name(), args) |
|
171 }, |
|
172 } |
|
173 |
168 var accountStatusesSubcommand = &cobra.Command{ |
174 var accountStatusesSubcommand = &cobra.Command{ |
169 Use: "statuses", |
175 Use: "statuses", |
170 Aliases: []string{"st"}, |
176 Aliases: []string{"st"}, |
171 Short: "Display the account statuses", |
177 Short: "Display the account statuses", |
172 RunE: func(cmd *cobra.Command, args []string) error { |
178 RunE: func(cmd *cobra.Command, args []string) error { |