Commit Graph

15 Commits

Author SHA1 Message Date
Tobias Schottdorf
b5d9eff767 add mode and modTime flags
In some situations, it is desired to have reproducible runs of `go-bindata`
from a fixed git repository commit. Since mtimes and file modes are not
generally versioned, the newly introduced flags aid in that quest by allowing
to completely replace those two pieces of data by something fixed.

Example:
//go:generate go-bindata -pkg resource -mode 0644 -modtime 1388530800 \
                         -o ./embedded.go ./ui/...
2015-03-10 19:17:17 +01:00
Dmitri Shuralyov
af127dc2da Remove unused field in Config.
Commit 2c7ab48825 added new struct
InputConfig which contains Path string and Recursive bool. The rest of
go-bindata has been changed to use that.
The Recursive flag inside Config is now completely unused, and should
be removed since it makes code harder to read.
2015-02-25 17:34:33 -08:00
Beyang Liu
0efad67aa4 add -dev flag, similar to -debug but does not emit absolute file paths 2015-01-26 15:56:13 -08:00
opennota
6347e7a31c Accept individual files as parameters 2014-08-05 19:23:20 +07:00
yosssi
ca7033b19a Fix *Config.validate method not to make a directory when the -o flag's path does not have a directory. 2014-05-11 02:42:25 +09:00
Ian Kent
7f6fddddd0 Add support for -ignore 2014-04-29 23:42:13 +01:00
Jim Teeuwen
14a0ff90f8 Adds -o flag to specify output file name. 2013-11-16 12:08:37 +01:00
Alan Shreve
7ab45c816f add support for converting multiple directories simultaneously 2013-11-08 17:21:11 +02:00
Alan Shreve
2c7ab48825 use 'go' command style recursion indicators on path inputs rather than a recursive flag 2013-11-08 17:14:25 +02:00
Jim Teeuwen
b1eab644d7 Fixes Config.validate() to create the directory of the output
file, if it does not exist.
2013-11-01 10:34:25 +01:00
Jim Teeuwen
f5e037a829 Fixes some code comments. 2013-11-01 10:27:50 +01:00
Jim Teeuwen
a36b3d3839 Adds the -r command line flag. This determines if the input
directory should be processed recursively or not. The default
is false.

Fixes the package to use this flag.

Revises the README and adds a docs.go file which holds
package documentation.
2013-10-30 16:08:29 +01:00
Jim Teeuwen
cca9f8e6b7 Removes output of both debug and release code. There really
is no point to this.

All output (including TOC) is now written to a single output file.
This allows us to have different output file names to be specified.
Each for a different version generated code with its own build tags.
Consequently offering much greater flexibility in the way generated
code is to be used in a host application.

Fixes test outputs to match all these changes.
2013-10-30 14:45:04 +01:00
Jim Teeuwen
17f2782db6 Implements output of debug code.
Partially imlpements output of release code.
Reorganizes testdata directory.
2013-10-30 02:11:04 +01:00
Jim Teeuwen
c4d457542a Add some more test files and directories and implement locating
of asset files.
2013-10-29 18:23:52 +01:00