summaryrefslogtreecommitdiff
path: root/main.go
blob: ec7e6b282f3c8443c801456ca6b43423e3099b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

import (
	"bufio"
	"fmt"
	"os"

	"github.com/Shugyousha/stasher/conf"
)

func main() {
	f, err := os.Open("stasher.cfg")
	if err != nil {
		fmt.Fprintf(os.Stderr, "Could not open config file 'stasher.cfg': %q\n", err)
		os.Exit(1)
	}

	m := conf.NewManagerFromConfig(bufio.NewReader(f))
	fmt.Fprintf(os.Stderr, "manager: %#v\n", m)

	m.Run()
}