Anand Gaitonde and Michael Maximilien
f93f031745
Asset retrieval is independent of OS Path
...
That is for Windows \\ are replaced with / since the
asset map uses paths with /
2014-05-16 10:34:04 -07:00
jimt
4b70a41eb8
Merge pull request #31 from yosssi/fix-toc-footer
...
Remove the unnecessary line break of the TOC footer
2014-05-12 17:52:26 +02:00
yosssi
ff2ab748eb
Remove the unnecessary line break of the TOC footer
2014-05-13 00:39:28 +09:00
jimt
8abc1cae37
Merge pull request #30 from yosssi/add-assetnames
...
Add `AssetNames` function which returns the names of the assets.
2014-05-12 12:34:24 +02:00
yosssi
e764a84fdf
Fix the following things:
...
* Change `for name, _ := range _bindata` to `for name := range _bindata {`
* Format the souce codes
2014-05-12 18:15:42 +09:00
yosssi
57a8ec74ce
Add AssetNames
function which returns the names of the assets.
2014-05-12 13:59:00 +09:00
jimt
6c168add63
Merge pull request #29 from yosssi/fix-contributing
...
Fix a typo of CONTRIBUTING.md (Update from "chose" to "choose")
2014-05-10 20:00:37 +02:00
jimt
ab3c8e2995
Merge pull request #28 from yosssi/fix-config-validate
...
Fix `*Config.validate` method not to make a directory when the `-o` flag's path does not have a directory.
2014-05-10 19:59:02 +02:00
yosssi
cda5f335ae
Fix a typo of CONTRIBUTING.md (Update from "chose" to "choose")
2014-05-11 02:55:35 +09: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
jimt
2ebf002fb5
Merge pull request #26 from ian-kent/master
...
Add support for -ignore
2014-04-30 01:41:00 +02:00
Ian Kent
7f6fddddd0
Add support for -ignore
2014-04-29 23:42:13 +01:00
Jim Teeuwen
212d2a5cdc
Fixes typo in flag description.
2014-04-10 18:10:22 +02:00
Jim Teeuwen
3834e2fe48
Fixes some code comments.
2014-03-07 22:13:34 +01:00
jimt
362b0784bb
Merge pull request #20 from taichi/use_to_slash
...
Use / in the name of the asset.
2014-02-28 19:34:45 +01:00
SATO taichi
eb1b26017a
Use / in the name of the asset.
...
Windows path separator is not / in \.
2014-02-28 20:33:10 +09:00
Jim Teeuwen
1c1928d3b6
Amends README with a note on how to access generated asset data.
2014-01-29 12:43:10 +01:00
Jim Teeuwen
e87a807885
Avoid expensive fmt.Fprintf calls in StringWriter.Write
inner loop.
...
This addresses issue 14.
2014-01-29 11:34:37 +01:00
Jim Teeuwen
ae22b84b7e
Imlpement buffered output writer for increased performance.
...
This addresses issue 14.
2014-01-29 11:28:32 +01:00
Jim Teeuwen
436fd0c250
Fixes a typo in the README.
2014-01-29 02:05:30 +01:00
Jim Teeuwen
7d4f92315c
Amends README with a small installation note.
2014-01-29 02:03:55 +01:00
Jim Teeuwen
f628643380
Merge branch 'batchconvert'
...
Conflicts:
lib/toc.go
lib/translate.go
main.go
2014-01-29 01:44:38 +01:00
Jim Teeuwen
658f2bddf4
Runs go fmt.
2014-01-29 01:38:29 +01:00
Jim Teeuwen
bb0b560542
Fixes bytewriter to format output.
2014-01-29 01:37:15 +01:00
Jim Teeuwen
20077324b7
Removes debug print output.
2014-01-28 23:32:50 +01:00
jimt
4bf44a02f1
Merge pull request #16 from pblaszczyk/exit_code
...
In case of error, exit status should be different than 0.
2014-01-07 09:40:16 -08:00
Paweł Błaszczyk
85c2b05609
In case of error, exit status should be different than 0.
2014-01-07 17:41:09 +01:00
jimt
37aa0dc02e
Merge pull request #15 from pblaszczyk/fix
...
Fix for handling prefix value and output not formatted according to go fmt.
2014-01-03 12:11:32 -08:00
Paweł Błaszczyk
28919a6a56
Output files are not formatted in accordance with go fmt.
2014-01-03 19:45:37 +01:00
Paweł Błaszczyk
7bd7bcfcdf
Fix for ignored trailing path separator in prefix.
2014-01-03 18:46:33 +01:00
Jim Teeuwen
b903585359
Revises README to reflect changes to command line API.
2013-11-16 12:20:14 +01:00
Jim Teeuwen
4674192d6b
Implement supp-ort for multiple input paths in command line tool.
2013-11-16 12:19:19 +01:00
Jim Teeuwen
14a0ff90f8
Adds -o flag to specify output file name.
2013-11-16 12:08:37 +01:00
Jim Teeuwen
67221add2e
Replaces CONTRIBUTE file with CONTRIBUTING.md file.
...
The list of contributors is no longer included, as it
can be deduced from the git commit history. No need
to maintain it twice.
2013-11-16 11:57:31 +01:00
jimt
f43e6bd89c
Merge pull request #13 from inconshreveable/experimental
...
Proposed changes after experimenting with batchconvert
2013-11-12 01:41:44 -08:00
Alan Shreve
bd1a47dfea
be more helpful on no-argument invocation
2013-11-08 21:31:55 +02:00
Alan Shreve
8e87ecda2a
return errors from calls to Asset() instead of ever panicking
2013-11-08 21:28:49 +02: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
965fbe401b
Fixes some formatting in README.
2013-11-01 10:36:39 +01: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
ca6a684780
Fixes another code comment.
2013-11-01 10:30:39 +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
c385518c06
Performs some minor cleanup.
...
Adds testdata output for a debug build.
Fixes README to reflect new features and behaviour.
2013-10-30 15:24:59 +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
12a480432a
Implements writing of TOC file. Refactors code for debug and release
...
writers. Adds output examples for various output modes.
2013-10-30 13:14:58 +01:00
Jim Teeuwen
efd0c57cfd
Fixes some minor translation issues.
2013-10-30 11:42:09 +01:00
Jim Teeuwen
7125d6f515
Adds an extra testdata file to ensure that there are no
...
name collisions in the generated code, when it comes to
multiple assets with the same file name.
This should all receive unique entries, using their
directory paths to set them apart.
2013-10-30 02:19:24 +01:00
Jim Teeuwen
ae16b2b3c6
Finishes imlpementing the various debug and release output
...
modes. For debug we always read assets from disk and ignore
the compression and memcopy options. For release mode, the
assets are all embedded and the compression/memcopy options
are taken into account.
2013-10-30 02:16:14 +01:00