Tianon Gravi
6199632b55
Add explicit Travis script for "-race -cover"
2017-04-03 11:26:39 -07:00
Tianon Gravi
552554d161
Update Travis to include go_import_path
2017-04-03 11:20:49 -07:00
Tianon Gravi
d5b5f75007
Merge pull request #5 from infosiftr/stripper-example-test
...
Add an example of our CommentStripper that doubles a test
2017-04-01 08:13:28 -07:00
Tianon Gravi
8e09786a2f
Add an example of our CommentStripper that doubles as a test
2017-04-01 08:10:49 -07:00
Tianon Gravi
2b0958eb1b
Merge pull request #4 from infosiftr/readme
...
Add a basic README
2017-03-31 14:56:28 -07:00
Tianon Gravi
eafb59fae4
Add a basic README
2017-03-31 14:56:08 -07:00
yosifkit
7706c73639
Merge pull request #3 from infosiftr/godoc
...
Add some godocs for templatelib (mostly so I don't forget again how to use it, but also for others)
2017-02-20 13:03:26 -08:00
Tianon Gravi
2406f9a744
Add some godocs for templatelib (mostly so I don't forget again how to use it, but also for others)
2017-02-20 11:07:45 -08:00
yosifkit
5ab03445c6
Merge pull request #2 from infosiftr/manifest-list-tags
...
Add initial support for an explicit "ManifestListTags" field
2017-02-10 11:14:17 -08:00
Tianon Gravi
ff63f9df03
Fix GetSharedTagGroups ordering and update our hacky example code to have some SharedTags examples
2017-02-10 11:05:35 -08:00
Tianon Gravi
c48fd9a499
First pass at implementing GetSharedTagGroups
2017-02-10 10:25:54 -08:00
Tianon Gravi
8488b2f8fc
Add initial support for an explicit "SharedTags" field
...
Things we know we'll need to be able to do with the new `SharedTags` (and are thus included in this initial file format support):
- get list of all shared tags from a manifest (`manifest.GetAllSharedTags()`)
- get list of shared tags from an entry (`entry.SharedTags`)
- get list of entries given a shared tag (`manifest.GetSharedTag(tag)`)
2017-02-06 16:25:53 -08:00
Tianon Gravi
08ef5a968e
Fix return values
2017-01-24 13:50:52 -08:00
Tianon Gravi
3a995f9639
Move GitFetch and GitCommit content enforcement back to Parse2822 (since they have a different format when coming from line-based legacy files)
2017-01-24 13:50:02 -08:00
Tianon Gravi
187e703bbf
Return an error for duplicated tags in a single entry as well
2017-01-24 13:38:56 -08:00
Tianon Gravi
a65f578c6d
Fix error message formatting to be consistent
2017-01-24 13:12:29 -08:00
Tianon Gravi
29ebe1cee3
Also verify that Maintainers are valid in individual entry objects
2017-01-24 13:03:52 -08:00
Tianon Gravi
8bde624aad
Move more "bad entry" error handling into manifest.AddEntry, wher eit really belongs
2017-01-24 13:02:23 -08:00
Tianon Gravi
b3ac43e115
Update "duplicate tag" error message to include the tag list from both entries (for easier identification)
2017-01-24 12:54:44 -08:00
Tianon Gravi
0066f2058b
Minor whitespace change
2017-01-24 10:41:19 -08:00
Tianon Gravi
18031c04eb
Add Go 1.8 to Travis
2017-01-24 10:03:30 -08:00
Tianon Gravi
6c6566f129
Merge pull request #1 from infosiftr/line-based-maintainers
...
Add very basic line-based "maintainer:" comment parsing (passing contents directly into the manifest struct without any verification for now)
2016-07-20 11:20:10 -07:00
Tianon Gravi
3daa06d2ce
Update Travis to Go 1.7rc2 and Go 1.6.3
2016-07-20 11:15:46 -07:00
Tianon Gravi
9442670fdd
Add very basic line-based "maintainer:" comment parsing (passing contents directly into the manifest struct without any verification for now)
2016-07-20 11:12:33 -07:00
Tianon Gravi
945a488370
Rename "execpipe.New" to "execpipe.Run" so it's more clear that it invokes "Start" too
2016-06-24 17:31:43 -07:00
Tianon Gravi
449c8e950c
Add new "execpipe" package for easily streaming the output of commands in a sane, simple "io.Reader" way
2016-06-24 17:09:19 -07:00
Tianon Gravi
d6068c47a7
Allow only "http" and "https" URLs
2016-06-08 10:36:33 -07:00
Tianon Gravi
c1549952f3
Facepalm
2016-06-08 10:24:38 -07:00
Tianon Gravi
ac3ac95930
First attempt to unstick Windows
2016-06-08 10:23:10 -07:00
Tianon Gravi
e9ae2802d9
Remove support for Go 1.5, add support for Go 1.7
2016-06-03 09:35:28 -07:00
Tianon Gravi
c98d0c2b3d
Stop being a dummy reinventing the wheel and use template.IsTrue
2016-06-03 09:15:36 -07:00
Tianon Gravi
3db02d3b23
Add "empty string is false" to "ternary"
2016-06-02 20:41:21 -07:00
Tianon Gravi
5e6bbb37cb
Make ternary more forgiving of "interesting" boolean-like values
2016-06-02 17:30:32 -07:00
Tianon Gravi
29dc82bbab
More reflection tweaking
2016-06-02 17:23:48 -07:00
Tianon Gravi
032bdbe949
Use proper reflection instead of simple type switching
2016-06-02 17:21:11 -07:00
Tianon Gravi
5c8be71405
Generify some of the "action factory" logic in templatelib, thus allowing "first" and "last" to work on arbitrary types instead of just strings
2016-06-02 17:14:33 -07:00
Tianon Gravi
e4fd05106a
Screw it, let functions take only one argument instead of requiring two
2016-06-02 17:05:15 -07:00
Tianon Gravi
e55c34e8a6
Add new "ternary" templatelib function
2016-06-02 17:01:09 -07:00
Tianon Gravi
939e8fc63d
Fix minor typo
2016-06-02 16:49:58 -07:00
Tianon Gravi
369f346d90
Add a new "pkg/templatelib" package with the start of a simple text/template "stdlib"
2016-06-02 16:46:29 -07:00
Tianon Gravi
7d56be63f3
Be slightly less aggressive about using the current directory's "repo"
2016-06-01 17:08:02 -07:00
Tianon Gravi
a0797a5c0b
Add more validation and better line-based "git tag" handling
2016-05-27 16:41:04 -07:00
Tianon Gravi
e74aa41b37
Catch errors for invalid tagName values
2016-05-27 13:25:04 -07:00
Tianon Gravi
04af83c7d7
Add simple "HasTag" function for a Manifest2822Entry
2016-05-27 13:19:04 -07:00
Tianon Gravi
8a9af33071
Update manifest.Fetch to also parse "tag" from repo strings
2016-05-27 13:11:10 -07:00
Tianon Gravi
e40181b728
Also verify the "absoluteness" of the URL
2016-05-27 11:59:54 -07:00
Tianon Gravi
0b0d493724
Change the order manifest.Fetch parses so we can have a good fallback error message
2016-05-27 11:57:01 -07:00
Tianon Gravi
f346802da9
Adjust the signature of Fetch to include the "repo name"
2016-05-27 11:47:30 -07:00
Tianon Gravi
de5435319f
Add initial "manifest.Fetch" command
2016-05-27 11:37:40 -07:00
Tianon Gravi
2a759cb2d3
Add example code for using the "manifest" package
2016-05-27 10:46:11 -07:00