refactor #1

Merged
jkaninda merged 21 commits from refactor into main 2024-12-12 16:01:26 +01:00
3 changed files with 1 additions and 6 deletions
Showing only changes of commit 4904e8d0a6 - Show all commits

View File

@@ -1,4 +1,3 @@
// Package main /
/* /*
MIT License MIT License
@@ -22,6 +21,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
*/ */
package main package main
import "github.com/jkaninda/pg-bkup/cmd" import "github.com/jkaninda/pg-bkup/cmd"

View File

@@ -1,4 +1,3 @@
// Package internal /
/* /*
MIT License MIT License

View File

@@ -254,7 +254,3 @@ func CronNextTime(cronExpr string) time.Time {
next := schedule.Next(now) next := schedule.Next(now)
return next return next
} }
func UsageErrorf(cmd *cobra.Command, message string, args ...interface{}) error {
msg := fmt.Sprintf(message, args...)
return fmt.Errorf("%s\nSee '%s -h' for help and examples", msg, cmd.CommandPath())
}