Make the list subcommand read-only

This commit is contained in:
Kaleb Elwert 2020-09-03 02:02:25 -07:00
parent 0273362499
commit 7ba56ea211
1 changed files with 0 additions and 4 deletions

View File

@ -6,7 +6,6 @@ import (
"flag" "flag"
"fmt" "fmt"
"os" "os"
"path/filepath"
"github.com/markbates/pkger" "github.com/markbates/pkger"
"github.com/markbates/pkger/parser" "github.com/markbates/pkger/parser"
@ -39,9 +38,6 @@ func (e *listCmd) Exec(args []string) error {
return err return err
} }
fp := filepath.Join(info.Dir, outName)
os.RemoveAll(fp)
decls, err := parser.Parse(info, e.include...) decls, err := parser.Parse(info, e.include...)
if err != nil { if err != nil {
return err return err