refactor: move private buildpacks function to functions.go
This commit is contained in:
1 parent
3f0c46d43d
commit
bd47c76d26
2 files changed
+15
-10
No files matched your search
@@ -0,0 +1,15 @@
|
||||
package buildpacks
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func getAppName(args []string) (appName string, err error) {
|
||||
if len(args) >= 1 {
|
||||
appName = args[0]
|
||||
} else {
|
||||
err = errors.New("Please specify an app to run the command on")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
@@ -167,13 +167,3 @@ func CommandSet(args []string, index int) (err error) {
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func getAppName(args []string) (appName string, err error) {
|
||||
if len(args) >= 1 {
|
||||
appName = args[0]
|
||||
} else {
|
||||
err = errors.New("Please specify an app to run the command on")
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
Reference in new issue
Block a user