[WIP] table formatting
This commit is contained in:
@ -20,7 +20,7 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
reportBlacklist = map[string]struct{}{
|
||||
nonStandardReports = map[string]struct{}{
|
||||
"burndown.daily": {},
|
||||
"burndown.monthly": {},
|
||||
"burndown.weekly": {},
|
||||
@ -36,7 +36,7 @@ var (
|
||||
"timesheet": {},
|
||||
}
|
||||
|
||||
tagBlacklist = map[string]struct{}{
|
||||
virtualTags = map[string]struct{}{
|
||||
"ACTIVE": {},
|
||||
"ANNOTATED": {},
|
||||
"BLOCKED": {},
|
||||
@ -280,7 +280,7 @@ func (ts *TaskSquire) GetTags() []string {
|
||||
tags := make([]string, 0)
|
||||
|
||||
for _, tag := range strings.Split(string(output), "\n") {
|
||||
if _, ok := tagBlacklist[tag]; !ok && tag != "" {
|
||||
if _, ok := virtualTags[tag]; !ok && tag != "" {
|
||||
tags = append(tags, tag)
|
||||
}
|
||||
}
|
||||
@ -426,7 +426,7 @@ func (ts *TaskSquire) extractReports() Reports {
|
||||
reports := make(Reports)
|
||||
|
||||
for _, report := range availableReports {
|
||||
if _, ok := reportBlacklist[report]; ok {
|
||||
if _, ok := nonStandardReports[report]; ok {
|
||||
continue
|
||||
}
|
||||
reports[report] = &Report{
|
||||
|
||||
Reference in New Issue
Block a user