Documentation ¶
Index ¶
- Variables
- func GetIssueCommentIDs(context context.Context, cmd *cobra.Command, currentProfile *profile.Profile, ...) (ids []string, err error)
- func GetIssueIDs(context context.Context, cmd *cobra.Command, args []string) (ids []string, err error)
- type Comment
- type CommentCreator
- type CommentUpdator
- type Comments
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 { ID int `json:"id" mapstructure:"id"` Content common.RenderedText `json:"content" mapstructure:"content"` User user.Account `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"` Links common.Links `json:"links" mapstructure:"links"` }
func (Comment) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type CommentCreator ¶ added in v0.6.0
type CommentCreator struct {
Content common.RenderedText `json:"content" mapstructure:"content"`
}
type CommentUpdator ¶ added in v0.6.0
type CommentUpdator struct {
Content common.RenderedText `json:"content" mapstructure:"content"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.