feat(rename): Rename in gouik
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
package helpers
|
||||
|
||||
const configFile = ".goguik.yaml"
|
||||
const configFile = ".gouik.yaml"
|
||||
|
@ -208,7 +208,7 @@ You will have to reopen a new terminal to apply the changes or execute the follo
|
||||
func (g Golang) PostInstall(path string) error {
|
||||
|
||||
lineBashRc := []string{
|
||||
"# Golang - Added by goguik",
|
||||
"# Golang - Added by gouik",
|
||||
}
|
||||
|
||||
gopath := os.Getenv("GOPATH")
|
||||
|
@ -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 goguik",
|
||||
"# Swagger - Added by gouik",
|
||||
}
|
||||
|
||||
// checking if swagger binary is found after installation
|
||||
|
@ -11,23 +11,23 @@ import (
|
||||
log "github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
func IsGoguikDirectory(path string) (bool, error) {
|
||||
func IsGouikDirectory(path string) (bool, error) {
|
||||
|
||||
binPath, err := os.Executable()
|
||||
if err != nil {
|
||||
return false, errors.Trace(err)
|
||||
}
|
||||
|
||||
goguikPath := filepath.Dir(binPath)
|
||||
gouikPath := filepath.Dir(binPath)
|
||||
|
||||
if goguikPath != path {
|
||||
if gouikPath != path {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
func IsGoguikProject(path string) (bool, error) {
|
||||
func IsGouikProject(path string) (bool, error) {
|
||||
|
||||
exist, err := fileExists(filepath.Join(path, configFile))
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user