Updated shoboi refresh tool

This commit is contained in:
Eduard Urbach 2018-03-27 03:13:45 +02:00
parent 2e2609b3a6
commit 65bdc9b92e
2 changed files with 20 additions and 6 deletions

View File

@ -36,6 +36,17 @@ func main() {
}
}
switch queue {
case "high":
refreshQueue(highPriority)
case "medium":
refreshQueue(mediumPriority)
case "low":
refreshQueue(lowPriority)
default:
color.Cyan("High priority queue (%d):", len(highPriority))
refreshQueue(highPriority)
@ -44,6 +55,7 @@ func main() {
color.Cyan("Low priority queue (%d):", len(lowPriority))
refreshQueue(lowPriority)
}
color.Green("Finished.")
}

View File

@ -8,10 +8,12 @@ import (
// Shell parameters
var animeID string
var queue string
// Shell flags
func init() {
flag.StringVar(&animeID, "id", "", "ID of the anime you want to refresh")
flag.StringVar(&queue, "queue", "", "Queue type you want to refresh (high, medium, low)")
flag.Parse()
}