refactor: add DriverSession, move step cache to Driver session

This commit is contained in:
lilong.129
2024-09-02 12:14:45 +08:00
parent 5f61858b4d
commit 4c71fc02f9
13 changed files with 85 additions and 88 deletions

View File

@@ -1,7 +1,7 @@
package cmd
import (
"io/ioutil"
"os"
"path/filepath"
"github.com/httprunner/funplugin/myexec"
@@ -56,7 +56,7 @@ var convertCmd = &cobra.Command{
var files []string
for _, arg := range args {
if builtin.IsFolderPathExists(arg) {
fs, err := ioutil.ReadDir(arg)
fs, err := os.ReadDir(arg)
if err != nil {
log.Error().Err(err).Str("path", arg).Msg("read dir failed")
continue