@@ -11,19 +11,21 @@ func TLS(argv []string, cmdr cmd.Commander) error {
1111Valid commands for tls:
1212
1313tls:info view info about an application's TLS settings
14- tls:enable enables the router to enforce https-only requests to an application
15- tls:disable disables the router to enforce https-only requests to an application
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
1618
1719Use 'drycc help [command]' to learn more.
1820`
1921
2022 switch argv [0 ] {
2123 case "tls:info" :
2224 return tlsInfo (argv , cmdr )
23- case "tls:enable" :
24- return tlsEnable (argv , cmdr )
25- case "tls:disable" :
26- return tlsDisable (argv , cmdr )
25+ case "tls:force: enable" :
26+ return tlsForceEnable (argv , cmdr )
27+ case "tls:force: disable" :
28+ return tlsForceDisable (argv , cmdr )
2729 case "tls:auto:enable" :
2830 return tlsAutoEnable (argv , cmdr )
2931 case "tls:auto:disable" :
@@ -63,11 +65,11 @@ Options:
6365 return cmdr .TLSInfo (safeGetValue (args , "--app" ))
6466}
6567
66- func tlsEnable (argv []string , cmdr cmd.Commander ) error {
68+ func tlsForceEnable (argv []string , cmdr cmd.Commander ) error {
6769 usage := `
6870Enable the router to enforce https-only requests to the current application.
6971
70- Usage: drycc tls:enable [options]
72+ Usage: drycc tls:force: enable [options]
7173
7274Options:
7375 -a --app=<app>
@@ -80,14 +82,14 @@ Options:
8082 return err
8183 }
8284
83- return cmdr .TLSEnable (safeGetValue (args , "--app" ))
85+ return cmdr .TLSForceEnable (safeGetValue (args , "--app" ))
8486}
8587
86- func tlsDisable (argv []string , cmdr cmd.Commander ) error {
88+ func tlsForceDisable (argv []string , cmdr cmd.Commander ) error {
8789 usage := `
8890Disable the router from enforcing https-only requests to the current application.
8991
90- Usage: drycc tls:disable [options]
92+ Usage: drycc tls:force: disable [options]
9193
9294Options:
9395 -a --app=<app>
@@ -100,7 +102,7 @@ Options:
100102 return err
101103 }
102104
103- return cmdr .TLSDisable (safeGetValue (args , "--app" ))
105+ return cmdr .TLSForceDisable (safeGetValue (args , "--app" ))
104106}
105107
106108func tlsAutoEnable (argv []string , cmdr cmd.Commander ) error {
0 commit comments