feat(rename): Fix typo in name ...

This commit is contained in:
Matthieu 'JP' DERASSE
2022-07-25 20:43:53 +00:00
parent ec6485aa45
commit f7e9aa7dfb
8 changed files with 23 additions and 23 deletions

View File

@ -1,3 +1,3 @@
package helpers
const configFile = ".gouik.yaml"
const configFile = ".gouick.yaml"

View File

@ -228,7 +228,7 @@ func (g Golang) PostInstall(path string) error {
}
lineBashRc := []string{
"# Golang - Added by gouik",
"# Golang - Added by gouick",
}
gopath := os.Getenv("GOPATH")

View File

@ -204,7 +204,7 @@ You will have to reopen a new terminal to apply the changes or execute the follo
func (s Swagger) PostInstall(path string) error {
lineBashRc := []string{
"# Swagger - Added by gouik",
"# Swagger - Added by gouick",
}
// checking if swagger binary is found after installation

View File

@ -11,23 +11,23 @@ import (
log "github.com/sirupsen/logrus"
)
func IsGouikDirectory(path string) (bool, error) {
func IsGouickDirectory(path string) (bool, error) {
binPath, err := os.Executable()
if err != nil {
return false, errors.Trace(err)
}
gouikPath := filepath.Dir(binPath)
gouickPath := filepath.Dir(binPath)
if gouikPath != path {
if gouickPath != path {
return false, nil
}
return true, nil
}
func IsGouikProject(path string) (bool, error) {
func IsGouickProject(path string) (bool, error) {
exist, err := fileExists(filepath.Join(path, configFile))
if err != nil {