func fetch(c *cli.Context) { home := home(c) minArgs(c, 1, "fetch") a := c.Args() chart := a[0] var lname string if len(a) == 2 { lname = a[1] } action.Fetch(chart, lname, home) }
func fetch(c *cli.Context) { home := home(c) a := c.Args() if len(a) == 0 { log.Die("Fetch requires at least a Chart name") } chart := a[0] var lname string if len(a) == 2 { lname = a[1] } action.Fetch(chart, lname, home) }