Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion builder.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"os"

"github.com/jessevdk/go-assets"
"github.com/jessevdk/go-flags"
"os"
)

func main() {
Expand All @@ -12,6 +13,7 @@ func main() {
VariableName string `short:"v" long:"variable" description:"The name of the generated asset tree" default:"Assets"`
StripPrefix string `short:"s" long:"strip-prefix" description:"Strip the specified prefix from all paths"`
Output string `short:"o" long:"output" description:"File to write output to, or - to write to stdout" default:"-"`
Tags string `short:"t" long:"tags" description:"Tags for build constraints" default:""`
}

p := flags.NewParser(&opts, flags.Default)
Expand All @@ -27,6 +29,7 @@ func main() {
PackageName: opts.PackageName,
VariableName: opts.VariableName,
StripPrefix: opts.StripPrefix,
Tags: opts.Tags,
}

for _, f := range args {
Expand Down