Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "comment", Short: "Manage comments", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Comment requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
Types ¶
type Comment ¶
type Comment struct { Type string `json:"type" mapstructure:"type"` ID int `json:"id" mapstructure:"id"` Content common.RenderedText `json:"content" mapstructure:"content"` User user.User `json:"user" mapstructure:"user"` Anchor *common.FileAnchor `json:"inline,omitempty" mapstructure:"inline"` Parent *Comment `json:"parent,omitempty" mapstructure:"parent"` CreatedOn time.Time `json:"created_on" mapstructure:"created_on"` UpdatedOn time.Time `json:"updated_on" mapstructure:"updated_on"` IsDeleted bool `json:"deleted" mapstructure:"deleted"` IsPending bool `json:"pending" mapstructure:"pending"` PullRequest *PullRequestReference `json:"pullrequest" mapstructure:"pullrequest"` Links common.Links `json:"links" mapstructure:"links"` }
func (Comment) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type CommentCreator ¶
type CommentCreator struct { Content ContentCreator `json:"content" mapstructure:"content"` Anchor *common.FileAnchor `json:"inline,omitempty" mapstructure:"inline"` }
type CommentUpdator ¶
type CommentUpdator struct { Content ContentUpdator `json:"content" mapstructure:"content"` Anchor *common.FileAnchor `json:"inline,omitempty" mapstructure:"inline"` }
type Comments ¶
type Comments []Comment
func (Comments) GetHeader ¶
GetHeader gets the headers for the list command
implements common.Tableables
type ContentCreator ¶
type ContentCreator struct {
Raw string `json:"raw" mapstructure:"raw"`
}
type ContentUpdator ¶
type ContentUpdator struct {
Raw string `json:"raw" mapstructure:"raw"`
}
Click to show internal directories.
Click to hide internal directories.