rename upload to scan
This commit is contained in:
parent
44d7199e56
commit
59694a2632
10
main.go
10
main.go
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user