From 2a0290aeac28793f45bd7660b9baf608c55294d7 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Tue, 29 Sep 2015 11:05:28 +1000 Subject: [PATCH] updated help --- yaml.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/yaml.go b/yaml.go index d116fb87..181194dd 100644 --- a/yaml.go +++ b/yaml.go @@ -19,13 +19,13 @@ func main() { { Name: "read", Aliases: []string{"r"}, - Usage: "read \n\te.g.: yaml read sample.json a.b.c\n\t(default) reads a property from a given yaml file", + Usage: "read \n\te.g.: yaml read sample.json a.b.c\n\t(default) reads a property from a given yaml file\n", Action: readProperty, }, { Name: "write", Aliases: []string{"w"}, - Usage: "write \n\te.g.: yaml write sample.json a.b.c 5\n\tupdates a property from a given yaml file, outputs to stdout", + Usage: "write \n\te.g.: yaml write sample.json a.b.c 5\n\tupdates a property from a given yaml file, outputs to stdout\n", Action: writeProperty, }, } @@ -56,11 +56,11 @@ func writeProperty(c *cli.Context) { } func printYaml(context interface{}) { - out, err := yaml.Marshal(context) - if err != nil { - log.Fatalf("error printing yaml: %v", err) - } - fmt.Println(string(out)) + out, err := yaml.Marshal(context) + if err != nil { + log.Fatalf("error printing yaml: %v", err) + } + fmt.Println(string(out)) } func readYaml(c *cli.Context, parsedData *map[interface{}]interface{}) {