change: upgrade funplugin to v0.4.0

This commit is contained in:
debugtalk
2022-03-20 10:12:17 +08:00
parent e34d6f9191
commit b367a68d9b
13 changed files with 28 additions and 19 deletions

View File

@@ -15,12 +15,12 @@ import (
"github.com/httprunner/hrp/internal/ga"
)
type PluginType uint
type PluginType string
const (
Ignore PluginType = iota
Py
Go
Ignore PluginType = "ignore"
Py PluginType = "py"
Go PluginType = "go"
)
func CreateScaffold(projectName string, pluginType PluginType) error {
@@ -37,7 +37,10 @@ func CreateScaffold(projectName string, pluginType PluginType) error {
return fmt.Errorf("project name already exists")
}
log.Info().Str("projectName", projectName).Msg("create new scaffold project")
log.Info().
Str("projectName", projectName).
Str("pluginType", string(pluginType)).
Msg("create new scaffold project")
// create project folders
if err := builtin.CreateFolder(projectName); err != nil {

View File

@@ -1,3 +1,3 @@
package version
const VERSION = "v0.7.0"
const VERSION = "v0.8.0-beta"