mirror of https://github.com/dirtbags/moth.git
Bit of reorg, add missing files
This commit is contained in:
parent
921cc86c42
commit
de8f6cbeb8
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
*
|
||||||
|
|
Loading…
Reference in New Issue