Implement list command using previously implemented core.FullData.Export()

This commit is contained in:
nytpu
2021-03-18 15:01:51 -06:00
parent 77982cb60e
commit fbfa123d2d
+1 -2
View File
@@ -59,8 +59,7 @@ func main() {
fetch.RefreshAll(&core.Data, *refreshWorkersFlag) fetch.RefreshAll(&core.Data, *refreshWorkersFlag)
case "list": case "list":
argCheck(c.Args(), 0, false, "'list' doesn't take an argument!") argCheck(c.Args(), 0, false, "'list' doesn't take an argument!")
// TODO core.Data.Export(os.Stdout)
fmt.Fprintln(os.Stderr, "Not Yet Implemented")
case "add": case "add":
argCheck(c.Args(), 1, true, "Please provide a URL to add.") argCheck(c.Args(), 1, true, "Please provide a URL to add.")