rename upload to scan

This commit is contained in:
Tyrel Souza 2019-05-13 23:28:30 -04:00 committed by Tyrel Souza
parent 44d7199e56
commit 59694a2632
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

10
main.go
View File

@ -15,11 +15,11 @@ func main() {
app.Commands = []cli.Command{ app.Commands = []cli.Command{
{ {
Name: "upload", Name: "Scan",
Aliases: []string{"u"}, Aliases: []string{"u"},
Usage: "Upload a directory's manifests", Usage: "Scan a directory's manifests",
Action: func(c *cli.Context) error { Action: func(c *cli.Context) error {
return upload(c) return scan(c)
}, },
}, },
} }
@ -30,11 +30,11 @@ func main() {
} }
} }
func upload(c *cli.Context) error { func scan(c *cli.Context) error {
directory := c.Args().First() directory := c.Args().First()
fmt.Println(strings.Join(getAllManifests(directory), ", ")) fmt.Println(strings.Join(getAllManifests(directory), ", "))
// TODO, actually upload, don't just print names // TODO, actually scan, don't just print names
return nil return nil
} }