File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ func main() {
19
19
{
20
20
Name : "read" ,
21
21
Aliases : []string {"r" },
22
- Usage : "read <filename> <path>\n \t e.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 \t e.g.: yaml read sample.json a.b.c\n \t (default) reads a property from a given yaml file\n " ,
23
23
Action : readProperty ,
24
24
},
25
25
{
26
26
Name : "write" ,
27
27
Aliases : []string {"w" },
28
- Usage : "write <filename> <path> <value>\n \t e.g.: yaml write sample.json a.b.c 5\n \t updates a property from a given yaml file, outputs to stdout" ,
28
+ Usage : "write <filename> <path> <value>\n \t e.g.: yaml write sample.json a.b.c 5\n \t updates a property from a given yaml file, outputs to stdout\n " ,
29
29
Action : writeProperty ,
30
30
},
31
31
}
@@ -56,11 +56,11 @@ func writeProperty(c *cli.Context) {
56
56
}
57
57
58
58
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 ))
64
64
}
65
65
66
66
func readYaml (c * cli.Context , parsedData * map [interface {}]interface {}) {
You can’t perform that action at this time.
0 commit comments