Skip to content

Commit 2a0290a

Browse files
committed
updated help
1 parent 4ea8d5c commit 2a0290a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

yaml.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ func main() {
1919
{
2020
Name: "read",
2121
Aliases: []string{"r"},
22-
Usage: "read <filename> <path>\n\te.g.: yaml read sample.json a.b.c\n\t(default) reads a property from a given yaml file",
22+
Usage: "read <filename> <path>\n\te.g.: yaml read sample.json a.b.c\n\t(default) reads a property from a given yaml file\n",
2323
Action: readProperty,
2424
},
2525
{
2626
Name: "write",
2727
Aliases: []string{"w"},
28-
Usage: "write <filename> <path> <value>\n\te.g.: yaml write sample.json a.b.c 5\n\tupdates a property from a given yaml file, outputs to stdout",
28+
Usage: "write <filename> <path> <value>\n\te.g.: yaml write sample.json a.b.c 5\n\tupdates a property from a given yaml file, outputs to stdout\n",
2929
Action: writeProperty,
3030
},
3131
}
@@ -56,11 +56,11 @@ func writeProperty(c *cli.Context) {
5656
}
5757

5858
func printYaml(context interface{}) {
59-
out, err := yaml.Marshal(context)
60-
if err != nil {
61-
log.Fatalf("error printing yaml: %v", err)
62-
}
63-
fmt.Println(string(out))
59+
out, err := yaml.Marshal(context)
60+
if err != nil {
61+
log.Fatalf("error printing yaml: %v", err)
62+
}
63+
fmt.Println(string(out))
6464
}
6565

6666
func readYaml(c *cli.Context, parsedData *map[interface{}]interface{}) {

0 commit comments

Comments
 (0)