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, > publish, distribute, sublicense, and/or sell copies of the Software,
> and to permit persons to whom the Software is furnished to do so, > and to permit persons to whom the Software is furnished to do so,
> subject to the following conditions: > subject to the following conditions:
>
> The above copyright notice and this permission notice shall be > The above copyright notice and this permission notice shall be
> included in all copies or substantial portions of the Software. > 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, > The software is provided "as is", without warranty of any kind,
> express or implied, including but not limited to the warranties of > express or implied, including but not limited to the warranties of
> merchantability, fitness for a particular purpose and > merchantability, fitness for a particular purpose and

View File

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

View File

@ -29,6 +29,12 @@ func main() {
"/mothballs", "/mothballs",
"Path to read mothballs", "Path to read mothballs",
) )
flag.StringVar(
&ctx.PuzzlesDir,
"puzzles",
"",
"Path to read puzzle source trees",
)
flag.StringVar( flag.StringVar(
&ctx.StateDir, &ctx.StateDir,
"state", "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
*