update flags

This commit is contained in:
Dan Anglin 2024-05-30 09:09:51 +01:00
parent 905f1209d0
commit d2c7377627
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 8 additions and 8 deletions

View file

@ -2,22 +2,22 @@ package executor
const ( const (
flagAccountName = "account-name" flagAccountName = "account-name"
flagBoostable = "boostable"
flagBrowser = "browser" flagBrowser = "browser"
flagContentType = "content-type" flagContentType = "content-type"
flagContent = "content" flagContent = "content"
flagFederated = "federated" flagEnableFederation = "enable-federation"
flagEnableLikes = "enable-likes"
flagEnableReplies = "enable-replies"
flagEnableReposts = "enable-reposts"
flagFrom = "from" flagFrom = "from"
flagInstance = "instance" flagInstance = "instance"
flagLanguage = "language" flagLanguage = "language"
flagLikeable = "likeable"
flagLimit = "limit" flagLimit = "limit"
flagListID = "list-id" flagListID = "list-id"
flagListTitle = "list-title" flagListTitle = "list-title"
flagListRepliesPolicy = "list-replies-policy" flagListRepliesPolicy = "list-replies-policy"
flagMyAccount = "my-account" flagMyAccount = "my-account"
flagNotify = "notify" flagNotify = "notify"
flagReplyable = "replyable"
flagSensitive = "sensitive" flagSensitive = "sensitive"
flagSkipRelationship = "skip-relationship" flagSkipRelationship = "skip-relationship"
flagShowPreferences = "show-preferences" flagShowPreferences = "show-preferences"

View file

@ -34,10 +34,10 @@ func NewCreateExecutor(tlf TopLevelFlags, name, summary string) *CreateExecutor
topLevelFlags: tlf, topLevelFlags: tlf,
} }
createExe.BoolVar(&createExe.boostable, flagBoostable, true, "specify if the status can be reposted/boosted by others") createExe.BoolVar(&createExe.boostable, flagEnableReposts, true, "specify if the status can be reposted/boosted by others")
createExe.BoolVar(&createExe.federated, flagFederated, true, "specify if the status can be federated beyond the local timelines") createExe.BoolVar(&createExe.federated, flagEnableFederation, true, "specify if the status can be federated beyond the local timelines")
createExe.BoolVar(&createExe.likeable, flagLikeable, true, "specify if the status can be liked/favourited") createExe.BoolVar(&createExe.likeable, flagEnableLikes, true, "specify if the status can be liked/favourited")
createExe.BoolVar(&createExe.replyable, flagReplyable, true, "specify if the status can be replied to") createExe.BoolVar(&createExe.replyable, flagEnableReplies, true, "specify if the status can be replied to")
createExe.BoolVar(&createExe.sensitive, flagSensitive, false, "specify if the status should be marked as sensitive") createExe.BoolVar(&createExe.sensitive, flagSensitive, false, "specify if the status should be marked as sensitive")
createExe.StringVar(&createExe.content, flagContent, "", "the content of the status to create") createExe.StringVar(&createExe.content, flagContent, "", "the content of the status to create")
createExe.StringVar(&createExe.contentType, flagContentType, "plain", "the type that the contents should be parsed from (valid values are plain and markdown)") createExe.StringVar(&createExe.contentType, flagContentType, "plain", "the type that the contents should be parsed from (valid values are plain and markdown)")