Documentation
¶
Index ¶
- Variables
- func Execute()
- func Load(path string, object interface{}) (err error)
- func Save(path string, object interface{}) (err error)
- type ActivityStruct
- type IssuePayloadStruct
- type IssueStruct
- type PayloadStruct
- type RedmineActivityStruct
- type RedmineGetTimeEntriesStruct
- type RedmineIssueStruct
- type RedmineProjectSctruct
- type RedmineTimeEntryStruct
- type RedmineUserStruct
- type TimeEntryStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{
Use: "act",
Short: "act - Activity Continuous Tracking",
Long: ``,
}
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
type ActivityStruct ¶
type IssuePayloadStruct ¶
type IssuePayloadStruct struct {
Issue IssueStruct `json:"issue"`
}
type IssueStruct ¶
type IssueStruct struct {
Note string `json:"notes"`
}
type PayloadStruct ¶
type PayloadStruct struct {
TimeEntry TimeEntryStruct `json:"time_entry"`
}
PayloadStruct is the envelope to the time_entry expected by the Redmine API
type RedmineActivityStruct ¶
type RedmineGetTimeEntriesStruct ¶
type RedmineGetTimeEntriesStruct struct {
TimeEntries []RedmineTimeEntryStruct `json:"time_entries"`
}
type RedmineIssueStruct ¶
type RedmineIssueStruct struct {
ID int `json:"id"`
}
type RedmineProjectSctruct ¶
type RedmineTimeEntryStruct ¶
type RedmineTimeEntryStruct struct {
ID int `json:"id"`
Time float64 `json:"hours"`
Comment string `json:"comments"`
Date string `json:"spent_on"`
CreatedOn string `json:"created_on"`
UpdatedOn string `json:"updated_on"`
Project RedmineProjectSctruct `json:"project"`
Issue RedmineIssueStruct `json:"issue"`
User RedmineUserStruct `json:"user"`
Activity RedmineActivityStruct `json:"activity"`
}
type RedmineUserStruct ¶
Click to show internal directories.
Click to hide internal directories.