Bit of reorg, add missing files

This commit is contained in:
Neale Pickett 2019-08-25 07:10:32 -06:00
parent 921cc86c42
commit de8f6cbeb8
16 changed files with 52 additions and 2 deletions

View File

@ -7,10 +7,15 @@ Copyright © 2015-2016 Neale Pickett <neale@woozle.org>
> publish, distribute, sublicense, and/or sell copies of the Software,
> and to permit persons to whom the Software is furnished to do so,
> subject to the following conditions:
>
> The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software.
>
> Except as contained in this notice, the name(s) of the above
> copyright holders shall not be used in advertising or otherwise
> to promote the sale, use or other dealings in this Software
> without prior written authorization.
>
> The software is provided "as is", without warranty of any kind,
> express or implied, including but not limited to the warranties of
> merchantability, fitness for a particular purpose and

View File

@ -18,9 +18,11 @@ import (
type Instance struct {
Base string
MothballDir string
PuzzlesDir string
StateDir string
ThemeDir string
AttemptInterval time.Duration
Debug bool
categories map[string]*Zipfs
update chan bool

View File

@ -29,6 +29,12 @@ func main() {
"/mothballs",
"Path to read mothballs",
)
flag.StringVar(
&ctx.PuzzlesDir,
"puzzles",
"",
"Path to read puzzle source trees",
)
flag.StringVar(
&ctx.StateDir,
"state",

15
cmd/transpile/rfc822.md Normal file
View File

@ -0,0 +1,15 @@
Author: neale
Answer: moo
A MOTH file
===========
This is a moth file, woo wo!
# A MOTH file
* moo
* moo
* moo
* squeak

22
cmd/transpile/yaml.md Normal file
View File

@ -0,0 +1,22 @@
---
pre:
authors:
- neale
answers:
- moo
---
A YAML MOTH file
===========
This is a moth file, woo wo!
With YAML metadata!
# A MOTH file
* moo
* moo
* moo
*