Skip to content

Commit e9c3f7c

Browse files
committed
display format in help
1 parent 3fe8b17 commit e9c3f7c

19 files changed

+56
-75
lines changed

drone/autoscale/autoscale_version.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ var autoscaleVersionCmd = cli.Command{
1515
Action: autoscaleVersion,
1616
Flags: []cli.Flag{
1717
cli.StringFlag{
18-
Name: "format",
19-
Usage: "format output",
20-
Value: tmplAutoscaleVersion,
21-
Hidden: true,
18+
Name: "format",
19+
Usage: "format output",
20+
Value: tmplAutoscaleVersion,
2221
},
2322
},
2423
}

drone/build/build_promote.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ var buildPromoteCmd = cli.Command{
2020
Usage: "custom parameters to be injected into the job environment. Format: KEY=value",
2121
},
2222
cli.StringFlag{
23-
Name: "format",
24-
Usage: "format output",
25-
Value: tmplBuildInfo,
26-
Hidden: true,
23+
Name: "format",
24+
Usage: "format output",
25+
Value: tmplBuildInfo,
2726
},
2827
},
2928
}

drone/build/build_start.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ var buildStartCmd = cli.Command{
2121
Usage: "custom parameters to be injected into the job environment. Format: KEY=value",
2222
},
2323
cli.StringFlag{
24-
Name: "format",
25-
Usage: "format output",
26-
Value: tmplBuildInfo,
27-
Hidden: true,
24+
Name: "format",
25+
Usage: "format output",
26+
Value: tmplBuildInfo,
2827
},
2928
},
3029
}

drone/cron/cron_info.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ var cronInfoCmd = cli.Command{
1616
Action: cronInfo,
1717
Flags: []cli.Flag{
1818
cli.StringFlag{
19-
Name: "format",
20-
Usage: "format output",
21-
Value: tmplCronList,
22-
Hidden: true,
19+
Name: "format",
20+
Usage: "format output",
21+
Value: tmplCronList,
2322
},
2423
},
2524
}

drone/info/info.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ var Command = cli.Command{
1717
Action: info,
1818
Flags: []cli.Flag{
1919
cli.StringFlag{
20-
Name: "format",
21-
Usage: "format output",
22-
Value: tmplInfo,
23-
Hidden: true,
20+
Name: "format",
21+
Usage: "format output",
22+
Value: tmplInfo,
2423
},
2524
},
2625
}

drone/node/node_create.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,9 @@ var nodeCreateCmd = cli.Command{
8484
Usage: "node is protected from deletion",
8585
},
8686
cli.StringFlag{
87-
Name: "format",
88-
Usage: "format output",
89-
Value: tmplNodeInfo,
90-
Hidden: true,
87+
Name: "format",
88+
Usage: "format output",
89+
Value: tmplNodeInfo,
9190
},
9291
},
9392
}

drone/node/node_import.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,9 @@ var nodeImportCmd = cli.Command{
6262
EnvVar: "MACHINE_STORAGE_PATH",
6363
},
6464
cli.StringFlag{
65-
Name: "format",
66-
Usage: "format output",
67-
Value: tmplNodeInfo,
68-
Hidden: true,
65+
Name: "format",
66+
Usage: "format output",
67+
Value: tmplNodeInfo,
6968
},
7069
},
7170
}

drone/node/node_import_all.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ var nodeImportAllCmd = cli.Command{
4949
EnvVar: "MACHINE_STORAGE_PATH",
5050
},
5151
cli.StringFlag{
52-
Name: "format",
53-
Usage: "format output",
54-
Value: tmplNodeInfo,
55-
Hidden: true,
52+
Name: "format",
53+
Usage: "format output",
54+
Value: tmplNodeInfo,
5655
},
5756
},
5857
}

drone/node/node_info.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ var nodeInfoCmd = cli.Command{
1515
Action: nodeInfo,
1616
Flags: []cli.Flag{
1717
cli.StringFlag{
18-
Name: "format",
19-
Usage: "format output",
20-
Value: tmplNodeInfo,
21-
Hidden: true,
18+
Name: "format",
19+
Usage: "format output",
20+
Value: tmplNodeInfo,
2221
},
2322
},
2423
}

drone/node/node_list.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ var nodeListCmd = cli.Command{
1515
Action: nodeList,
1616
Flags: []cli.Flag{
1717
cli.StringFlag{
18-
Name: "format",
19-
Usage: "format output",
20-
Value: tmplNodeList,
21-
Hidden: true,
18+
Name: "format",
19+
Usage: "format output",
20+
Value: tmplNodeList,
2221
},
2322
},
2423
}

0 commit comments

Comments
 (0)