From 5137859e47678aae81e178ca7d164f9e2b4e3121 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 14 Jun 2019 11:58:28 -0600 Subject: Rename caddy2 -> caddy Removes the version from the package name --- cmd/caddy2/main.go | 30 +++++++++++++++--------------- cmd/run.go | 6 +++--- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'cmd') diff --git a/cmd/caddy2/main.go b/cmd/caddy2/main.go index 310b8c1..c2320ef 100644 --- a/cmd/caddy2/main.go +++ b/cmd/caddy2/main.go @@ -1,23 +1,23 @@ package main import ( - caddycmd "github.com/caddyserver/caddy2/cmd" + caddycmd "github.com/caddyserver/caddy/cmd" // this is where modules get plugged in - _ "github.com/caddyserver/caddy2/modules/caddyhttp" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/caddylog" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/encode" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/encode/brotli" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/encode/gzip" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/encode/zstd" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/fileserver" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/headers" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/markdown" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/requestbody" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/reverseproxy" - _ "github.com/caddyserver/caddy2/modules/caddyhttp/rewrite" - _ "github.com/caddyserver/caddy2/modules/caddytls" - _ "github.com/caddyserver/caddy2/modules/caddytls/standardstek" + _ "github.com/caddyserver/caddy/modules/caddyhttp" + _ "github.com/caddyserver/caddy/modules/caddyhttp/caddylog" + _ "github.com/caddyserver/caddy/modules/caddyhttp/encode" + _ "github.com/caddyserver/caddy/modules/caddyhttp/encode/brotli" + _ "github.com/caddyserver/caddy/modules/caddyhttp/encode/gzip" + _ "github.com/caddyserver/caddy/modules/caddyhttp/encode/zstd" + _ "github.com/caddyserver/caddy/modules/caddyhttp/fileserver" + _ "github.com/caddyserver/caddy/modules/caddyhttp/headers" + _ "github.com/caddyserver/caddy/modules/caddyhttp/markdown" + _ "github.com/caddyserver/caddy/modules/caddyhttp/requestbody" + _ "github.com/caddyserver/caddy/modules/caddyhttp/reverseproxy" + _ "github.com/caddyserver/caddy/modules/caddyhttp/rewrite" + _ "github.com/caddyserver/caddy/modules/caddytls" + _ "github.com/caddyserver/caddy/modules/caddytls/standardstek" ) func main() { diff --git a/cmd/run.go b/cmd/run.go index d7f12d7..703e119 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -4,18 +4,18 @@ import ( "flag" "log" - "github.com/caddyserver/caddy2" + "github.com/caddyserver/caddy" ) // Main executes the main function of the caddy command. func Main() { flag.Parse() - err := caddy2.StartAdmin(*listenAddr) + err := caddy.StartAdmin(*listenAddr) if err != nil { log.Fatal(err) } - defer caddy2.StopAdmin() + defer caddy.StopAdmin() log.Println("Caddy 2 admin endpoint listening on", *listenAddr) -- cgit v1.2.3