Compare commits

...

2 commits

Author SHA1 Message Date
b3fa317dd0
add constant values for the flags 2024-08-01 01:31:46 +01:00
30110213e7
cleanup 2024-08-01 01:04:34 +01:00
3 changed files with 4 additions and 10 deletions

View file

@ -115,11 +115,3 @@ type NotFollowingError struct {
func (e NotFollowingError) Error() string { func (e NotFollowingError) Error() string {
return "you are not following " + e.Account return "you are not following " + e.Account
} }
//type UnknownMediaAttachmentError struct {
// AttachmentID string
//}
//
//func (e UnknownMediaAttachmentError) Error() string {
// return "unknown media attachment '" + e.AttachmentID + "'"
//}

View file

@ -14,6 +14,8 @@ import (
const ( const (
flagAddPoll = "add-poll" flagAddPoll = "add-poll"
flagAccountName = "account-name" flagAccountName = "account-name"
flagAllImages = "all-images"
flagAllVideos = "all-videos"
flagAttachmentID = "attachment-id" flagAttachmentID = "attachment-id"
flagBrowser = "browser" flagBrowser = "browser"
flagContentType = "content-type" flagContentType = "content-type"

View file

@ -64,8 +64,8 @@ func NewShowExecutor(printer *printer.Printer, config *config.Config, name, summ
showExe.BoolVar(&showExe.onlyPinned, flagOnlyPinned, false, "Set to true to show only the account's pinned statuses") showExe.BoolVar(&showExe.onlyPinned, flagOnlyPinned, false, "Set to true to show only the account's pinned statuses")
showExe.BoolVar(&showExe.onlyMedia, flagOnlyMedia, false, "Set to true to show only the statuses with media attachments") showExe.BoolVar(&showExe.onlyMedia, flagOnlyMedia, false, "Set to true to show only the statuses with media attachments")
showExe.BoolVar(&showExe.onlyPublic, flagOnlyPublic, false, "Set to true to show only the account's public posts") showExe.BoolVar(&showExe.onlyPublic, flagOnlyPublic, false, "Set to true to show only the account's public posts")
showExe.BoolVar(&showExe.getAllImages, "all-images", false, "Set to true to show all images from a status") showExe.BoolVar(&showExe.getAllImages, flagAllImages, false, "Set to true to show all images from a status")
showExe.BoolVar(&showExe.getAllVideos, "all-videos", false, "Set to true to show all videos from a status") showExe.BoolVar(&showExe.getAllVideos, flagAllVideos, false, "Set to true to show all videos from a status")
showExe.StringVar(&showExe.resourceType, flagType, "", "Specify the type of resource to display") showExe.StringVar(&showExe.resourceType, flagType, "", "Specify the type of resource to display")
showExe.StringVar(&showExe.accountName, flagAccountName, "", "Specify the account name in full (username@domain)") showExe.StringVar(&showExe.accountName, flagAccountName, "", "Specify the account name in full (username@domain)")
showExe.StringVar(&showExe.statusID, flagStatusID, "", "Specify the ID of the status to display") showExe.StringVar(&showExe.statusID, flagStatusID, "", "Specify the ID of the status to display")