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,
|
||||
> 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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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