Implement list command using previously implemented core.FullData.Export()
This commit is contained in:
+1
-2
@@ -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.")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user