func doProfileGet(client *lxd.Client, p string, args []string) error { // we shifted @args so so it should read "<key>" if len(args) != 1 { return errArgs } resp, err := client.GetProfileConfig(p) if err != nil { return err } for k, v := range resp { if k == args[0] { fmt.Printf("%s\n", v) } } return nil }