mirror of https://github.com/markbates/pkger.git
Make the list subcommand read-only
This commit is contained in:
parent
0273362499
commit
7ba56ea211
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue