Updated shoboi refresh tool
This commit is contained in:
parent
2e2609b3a6
commit
65bdc9b92e
@ -36,14 +36,26 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
color.Cyan("High priority queue (%d):", len(highPriority))
|
switch queue {
|
||||||
refreshQueue(highPriority)
|
case "high":
|
||||||
|
refreshQueue(highPriority)
|
||||||
|
|
||||||
color.Cyan("Medium priority queue (%d):", len(mediumPriority))
|
case "medium":
|
||||||
refreshQueue(mediumPriority)
|
refreshQueue(mediumPriority)
|
||||||
|
|
||||||
color.Cyan("Low priority queue (%d):", len(lowPriority))
|
case "low":
|
||||||
refreshQueue(lowPriority)
|
refreshQueue(lowPriority)
|
||||||
|
|
||||||
|
default:
|
||||||
|
color.Cyan("High priority queue (%d):", len(highPriority))
|
||||||
|
refreshQueue(highPriority)
|
||||||
|
|
||||||
|
color.Cyan("Medium priority queue (%d):", len(mediumPriority))
|
||||||
|
refreshQueue(mediumPriority)
|
||||||
|
|
||||||
|
color.Cyan("Low priority queue (%d):", len(lowPriority))
|
||||||
|
refreshQueue(lowPriority)
|
||||||
|
}
|
||||||
|
|
||||||
color.Green("Finished.")
|
color.Green("Finished.")
|
||||||
}
|
}
|
||||||
|
@ -8,10 +8,12 @@ import (
|
|||||||
|
|
||||||
// Shell parameters
|
// Shell parameters
|
||||||
var animeID string
|
var animeID string
|
||||||
|
var queue string
|
||||||
|
|
||||||
// Shell flags
|
// Shell flags
|
||||||
func init() {
|
func init() {
|
||||||
flag.StringVar(&animeID, "id", "", "ID of the anime you want to refresh")
|
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()
|
flag.Parse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user