From 7ba56ea2115e8976fd130f94916abc34c43b8bcd Mon Sep 17 00:00:00 2001 From: Kaleb Elwert Date: Thu, 3 Sep 2020 02:02:25 -0700 Subject: [PATCH] Make the list subcommand read-only --- cmd/pkger/cmds/list.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/cmd/pkger/cmds/list.go b/cmd/pkger/cmds/list.go index ab3598a..59ebd53 100644 --- a/cmd/pkger/cmds/list.go +++ b/cmd/pkger/cmds/list.go @@ -6,7 +6,6 @@ import ( "flag" "fmt" "os" - "path/filepath" "github.com/markbates/pkger" "github.com/markbates/pkger/parser" @@ -39,9 +38,6 @@ func (e *listCmd) Exec(args []string) error { return err } - fp := filepath.Join(info.Dir, outName) - os.RemoveAll(fp) - decls, err := parser.Parse(info, e.include...) if err != nil { return err