Documentation
¶
Index ¶
- Variables
- type Task
- func (t Task) GetFormattedBranch() string
- func (t Task) GetFormattedCreated() string
- func (t Task) GetFormattedCreatedDate() string
- func (t Task) GetFormattedCreatedTime() string
- func (t Task) GetFormattedId() string
- func (t Task) GetFormattedIssueId() string
- func (t Task) GetFormattedName() string
- func (t Task) GetFormattedRepo() string
- func (t Task) GetFormattedTags() string
- func (t Task) MatchId(id int) bool
- func (t Task) MatchTags(tags []string) bool
- func (t Task) ToString() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorEmptyName = errors.New("No name provided")
View Source
var ErrorFindMultipleFlags = errors.New("Cannot search using multiple flags")
View Source
var ErrorFindWithoutTag = errors.New("Tags not provided")
View Source
var ErrorInvalidDate = errors.New("Invalid task date format, use YYYY-MM-DD format")
View Source
var ErrorMainBranch = errors.New("Cannot use `main`/`master` as task name")
View Source
var ErrorNotInGitRepo = errors.New("Command was not run in git repo")
View Source
var ErrorParseInvalidCreatedDate = errors.New("Parsing Error: invalid task created date. Need to be in `YYYY-MM-DD HH:mm:ss` format")
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
ID int
Created time.Time
Name string
IssueId string // optional
Repo string // optional
Branch string // optional
Tags []string // optional
}
func NewTaskFromStr ¶
func (Task) GetFormattedBranch ¶
func (Task) GetFormattedCreated ¶
func (Task) GetFormattedCreatedDate ¶
func (Task) GetFormattedCreatedTime ¶
func (Task) GetFormattedId ¶
func (Task) GetFormattedIssueId ¶
func (Task) GetFormattedName ¶
func (Task) GetFormattedRepo ¶
func (Task) GetFormattedTags ¶
Click to show internal directories.
Click to hide internal directories.