Upgrade to Go 1.19

This commit is contained in:
Mikołaj Pęczkowski 2022-12-10 23:47:59 +01:00
parent 2d06e8e09c
commit 741f18efd1
9 changed files with 20 additions and 28 deletions

View file

@ -12,8 +12,8 @@ import (
)
const (
APP_NAME = "Git repository manager"
APP_DESCRIPTION = "Manage your repository with simple app"
AppName = "Git repository manager"
AppDescription = "Manage your repository with simple app"
VERSION = "0.3.0"
errNotFoundTags = "no repository was found with the specified tags"
errNotFoundName = "no repository was found with the specified name"
@ -25,7 +25,7 @@ type GitRepositoryManager struct {
}
func (g *GitRepositoryManager) Parse(args []string) error {
arguments, err := config.ParseCliArguments(APP_NAME, APP_DESCRIPTION, args)
arguments, err := config.ParseCliArguments(AppName, AppDescription, args)
if err != nil {
fmt.Printf("Error: %v", err.Error())
return err
@ -37,13 +37,13 @@ func (g *GitRepositoryManager) Parse(args []string) error {
return err
}
fileExcension, err := getFileExcension(arguments.ConfigurationFile)
fileExtension, err := getFileExtension(arguments.ConfigurationFile)
if err != nil {
fmt.Printf("Error: %v", err.Error())
return err
}
configuration, err := config.GetRepositoryConfig(configFileContent, fileExcension)
configuration, err := config.GetRepositoryConfig(configFileContent, fileExtension)
if err != nil {
fmt.Printf("Error: %v", err.Error())
return err