Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "commit", Short: "Manage commits", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Commit requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
This section is empty.
Types ¶
type Commit ¶
type Commit struct { Type string `json:"type" mapstructure:"type"` Hash string `json:"hash" mapstructure:"hash"` Author user.Author `json:"author" mapstructure:"author"` Message string `json:"message" mapstructure:"message"` Summary *common.RenderedText `json:"summary,omitempty" mapstructure:"summary"` Rendered *RenderedMessage `json:"rendered,omitempty" mapstructure:"rendered"` Parents []CommitRef `json:"parents" mapstructure:"parents"` Date time.Time `json:"date" mapstructure:"date"` Repository repository.Repository `json:"repository" mapstructure:"repository"` Links common.Links `json:"links" mapstructure:"links"` }
func (Commit) GetHeader ¶ added in v0.4.0
GetHeader gets the header for a table
implements common.Tableable
func (Commit) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
type Commits ¶ added in v0.4.0
type Commits []Commit
func (Commits) GetHeader ¶ added in v0.4.0
GetHeader gets the header for a table
implements common.Tableables
type RenderedMessage ¶
type RenderedMessage struct {
Message common.RenderedText `json:"message" mapstructure:"message"`
}
Click to show internal directories.
Click to hide internal directories.