refactor: refactoring of code to meet all golangci-lint requirements

This commit is contained in:
Jonas Kaninda
2024-11-19 02:54:31 +01:00
parent d97a0aafea
commit 63101ae84f
20 changed files with 413 additions and 313 deletions

View File

@@ -1,5 +1,6 @@
// Package cmd /
/*****
/*
****
@author Jonas Kaninda
@license MIT License <https://opensource.org/licenses/MIT>
@Copyright © 2024 Jonas Kaninda
@@ -8,7 +9,7 @@ package cmd
import (
"github.com/jkaninda/pg-bkup/internal"
"github.com/jkaninda/pg-bkup/utils"
"github.com/jkaninda/pg-bkup/pkg/logger"
"github.com/spf13/cobra"
)
@@ -19,7 +20,7 @@ var MigrateCmd = &cobra.Command{
if len(args) == 0 {
internal.StartMigration(cmd)
} else {
utils.Fatal(`"migrate" accepts no argument %q`, args)
logger.Fatal(`"migrate" accepts no argument %q`, args)
}