From fbea3374e96d45b18569a5fe3b86127fd813dbdb Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Mon, 6 May 2019 12:43:04 -0600 Subject: [PATCH] Add missing run.go (oops) --- cmd/run.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cmd/run.go diff --git a/cmd/run.go b/cmd/run.go new file mode 100644 index 00000000..d19fb194 --- /dev/null +++ b/cmd/run.go @@ -0,0 +1,18 @@ +package caddycmd + +import ( + "log" + + "bitbucket.org/lightcodelabs/caddy2" +) + +// Main executes the main function of the caddy command. +func Main() { + err := caddy2.StartAdmin("127.0.0.1:1234") + if err != nil { + log.Fatal(err) + } + defer caddy2.StopAdmin() + + select {} +}