From b8cba62643abf849411856bd92c42b59b98779f4 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 6 Mar 2020 23:15:25 -0700 Subject: Refactor for CertMagic v0.10; prepare for PKI app This is a breaking change primarily in two areas: - Storage paths for certificates have changed - Slight changes to JSON config parameters Huge improvements in this commit, to be detailed more in the release notes. The upcoming PKI app will be powered by Smallstep libraries. --- cmd/commandfuncs.go | 4 ++-- cmd/commands.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/commandfuncs.go b/cmd/commandfuncs.go index df3e498..f130c2b 100644 --- a/cmd/commandfuncs.go +++ b/cmd/commandfuncs.go @@ -34,7 +34,7 @@ import ( "github.com/caddyserver/caddy/v2" "github.com/caddyserver/caddy/v2/caddyconfig" - "github.com/mholt/certmagic" + "github.com/caddyserver/certmagic" "go.uber.org/zap" ) @@ -84,7 +84,7 @@ func cmdStart(fl Flags) (int, error) { // begin writing the confirmation bytes to the child's // stdin; use a goroutine since the child hasn't been - // started yet, and writing sychronously would result + // started yet, and writing synchronously would result // in a deadlock go func() { stdinpipe.Write(expect) diff --git a/cmd/commands.go b/cmd/commands.go index 87ded60..34154d4 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -256,6 +256,8 @@ provisioning stages.`, // This function panics if the name is already registered, // if the name does not meet the described format, or if // any of the fields are missing from cmd. +// +// This function should be used in init(). func RegisterCommand(cmd Command) { if cmd.Name == "" { panic("command name is required") -- cgit v1.2.3