Skip to content

Commit c5c0ffe

Browse files
committed
chore(workflow-cli): optimize drycc output
1 parent 4fb563a commit c5c0ffe

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

parser/routes.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Valid commands for routes:
1717
1818
routes:add create a route for an application
1919
routes:list list application routes
20-
routes:get get rule of route
21-
routes:set set rule of route
20+
routes:get get route rules
21+
routes:set set route rules
2222
routes:attach attach to gateway
2323
routes:detach detach to gateway
2424
routes:remove remove routes from an application
@@ -66,7 +66,7 @@ Arguments:
6666
<name>
6767
the unique name of the route.
6868
<kind>
69-
the route kind. Supports HTTPRoute, TCPRoute, UDPRoute, GRPCRoute, and TLSRoute.
69+
the route kind, range: HTTPRoute,TCPRoute,UDPRoute,GRPCRoute,TLSRoute.
7070
<backend>
7171
the route's backend, pattern: <service>:<port>,<weight>.
7272
@@ -138,7 +138,7 @@ Options:
138138

139139
func routesGet(argv []string, cmdr cmd.Commander) error {
140140
usage := `
141-
Get a route for an application
141+
Get route rules for an application
142142
143143
Usage: drycc routes:get <name> [options]
144144
@@ -165,7 +165,7 @@ Options:
165165

166166
func routesSet(argv []string, cmdr cmd.Commander) error {
167167
usage := `
168-
Set route for an application
168+
Set route rules for an application
169169
170170
Usage: drycc routes:set <name> --rules-file=<rules-file> [options]
171171

parser/tls.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ func TLS(argv []string, cmdr cmd.Commander) error {
1111
Valid commands for tls:
1212
1313
tls:info view info about an application's TLS settings
14-
tls:force:enable enables the router to enforce https-only requests to an application
15-
tls:force:disable disables the router to enforce https-only requests to an application
16-
tls:auto:enable enables the router to automatic generation of certificates to an application
17-
tls:auto:disable disables the router to automatic generation of certificates to an application
18-
tls:auto:issuer add a issuer to an application
14+
tls:auto:issuer set automatic certificate management environment issuer
15+
tls:auto:enable enable automatic certificate management environment
16+
tls:auto:disable disable automatic certificate management environment
17+
tls:force:enable enable https redirects all your visitor requests from http to https
18+
tls:force:disable disable https redirects all your visitor requests from http to https
1919
2020
Use 'drycc help [command]' to learn more.
2121
`
2222

2323
switch argv[0] {
2424
case "tls:info":
2525
return tlsInfo(argv, cmdr)
26-
case "tls:force:enable":
27-
return tlsForceEnable(argv, cmdr)
28-
case "tls:force:disable":
29-
return tlsForceDisable(argv, cmdr)
26+
case "tls:auto:issuer":
27+
return tlsAutoIssuer(argv, cmdr)
3028
case "tls:auto:enable":
3129
return tlsAutoEnable(argv, cmdr)
3230
case "tls:auto:disable":
3331
return tlsAutoDisable(argv, cmdr)
34-
case "tls:auto:issuer":
35-
return tlsAutoIssuer(argv, cmdr)
32+
case "tls:force:enable":
33+
return tlsForceEnable(argv, cmdr)
34+
case "tls:force:disable":
35+
return tlsForceDisable(argv, cmdr)
3636
default:
3737
if printHelp(argv, usage) {
3838
return nil

0 commit comments

Comments
 (0)