cmd: remove cmd done log msgs

remove these unncessary log messages because it says done before any returned error (which could imply it didn't error)
This commit is contained in:
Greg T. Wallace 2024-06-06 22:51:13 -04:00
parent 12c613f3b4
commit 579419ae31
2 changed files with 0 additions and 6 deletions

View file

@ -15,9 +15,6 @@ const (
// cmdCreate is the app's command to create an apc p15 file from key and cert
// pem files
func (app *app) cmdCreate(_ context.Context, args []string) error {
// done
defer app.stdLogger.Println("create: done")
// extra args == error
if len(args) != 0 {
return fmt.Errorf("create: failed, %w (%d)", ErrExtraArgs, len(args))

View file

@ -10,9 +10,6 @@ import (
// cmdInstall is the app's command to create apc p15 file content from key and cert
// pem files and upload the p15 to the specified APC UPS
func (app *app) cmdInstall(cmdCtx context.Context, args []string) error {
// done
defer app.stdLogger.Println("install: done")
// extra args == error
if len(args) != 0 {
return fmt.Errorf("install: failed, %w (%d)", ErrExtraArgs, len(args))