version bump: v0.1.0

This commit is contained in:
Mark Bates 2019-10-18 16:57:52 -04:00
parent 1adf32e2e7
commit 680e5e6a09
9 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package main package cmds
import "flag" import "flag"

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"encoding/json" "encoding/json"

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"flag" "flag"
@ -141,6 +141,7 @@ func Package(out string, paths []here.Path) error {
fmt.Fprintf(f, "\nvar _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`") fmt.Fprintf(f, "\nvar _ = pkger.Apply(mem.UnmarshalEmbed([]byte(`")
if err := stuffing.Stuff(f, c, paths); err != nil { if err := stuffing.Stuff(f, c, paths); err != nil {
os.RemoveAll(out)
return err return err
} }

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"encoding/json" "encoding/json"

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"flag" "flag"

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"flag" "flag"

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"flag" "flag"

View File

@ -1,4 +1,4 @@
package main package cmds
import ( import (
"fmt" "fmt"

View File

@ -4,6 +4,8 @@ import (
"log" "log"
"os" "os"
"os/exec" "os/exec"
"github.com/markbates/pkger/cmd/pkger/cmds"
) )
func main() { func main() {
@ -23,7 +25,7 @@ func main() {
} }
func run() error { func run() error {
root, err := New() root, err := cmds.New()
if err != nil { if err != nil {
return err return err
} }