summaryrefslogtreecommitdiff
path: root/cmd/ponzu/main.go
diff options
context:
space:
mode:
authorMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-16 06:40:54 +0200
committerMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-16 06:40:54 +0200
commitd89c33c1398428d4a456ca0252e6b1718efb0b96 (patch)
tree84b24ddb8ad8c651799bb4fdd04290d751b2b11d /cmd/ponzu/main.go
parent8181c4f325519055d7fec9982737b0a22f175534 (diff)
move usage examples to cobra field of same name
Diffstat (limited to 'cmd/ponzu/main.go')
-rw-r--r--cmd/ponzu/main.go16
1 files changed, 7 insertions, 9 deletions
diff --git a/cmd/ponzu/main.go b/cmd/ponzu/main.go
index 43e9536..bfe501a 100644
--- a/cmd/ponzu/main.go
+++ b/cmd/ponzu/main.go
@@ -60,15 +60,6 @@ The segments, separated by a comma, describe which services to start, either
if the server should utilize TLS encryption - served over HTTPS, which is
automatically managed using Let's Encrypt (https://letsencrypt.org)
-Example:
-$ ponzu run
-(or)
-$ ponzu -port=8080 --https run admin,api
-(or)
-$ ponzu run admin
-(or)
-$ ponzu -port=8888 run api
-
Defaults to '-port=8080 run admin,api' (running Admin & API on port 8080, without TLS)
Note:
@@ -76,6 +67,13 @@ Admin and API cannot run on separate processes unless you use a copy of the
database, since the first process to open it receives a lock. If you intend
to run the Admin and API on separate processes, you must call them with the
'ponzu' command independently.`,
+ Example: `$ ponzu run
+(or)
+$ ponzu -port=8080 --https run admin,api
+(or)
+$ ponzu run admin
+(or)
+$ ponzu -port=8888 run api`,
RunE: func(cmd *cobra.Command, args []string) error {
var addTLS string
if https {