diff options
author | KatolaZ <katolaz@freaknet.org> | 2017-07-08 09:25:37 +0100 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2017-07-08 09:25:37 +0100 |
commit | c63c8c8778cb497bba1b3d77e8810d2dd45d2e24 (patch) | |
tree | 677999d78ddc9db01a3d20a3e9652fae70130d61 /scorsh.go | |
parent | c3f29e8540cc135286c8a9abc33aac8df8005389 (diff) |
sandpit folder + experiments with YAML commands and configs
Diffstat (limited to 'scorsh.go')
-rw-r--r-- | scorsh.go | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -5,6 +5,7 @@ import ( "golang.org/x/crypto/openpgp" "log" "os" + "flag" ) const ( @@ -15,6 +16,12 @@ const ( SCORSH_ERR_SIGNATURE ) +type SCORSHconf struct { + spool string +} + + + type SCORSHmsg struct { repo string branch string @@ -22,6 +29,10 @@ type SCORSHmsg struct { new_rev string } +var conf_file = flag.String("c", "./scorsh.cfg", "Configuration file for SCORSH") + + + func SCORSHErr(err int) error { var err_str string @@ -45,6 +56,7 @@ func SCORSHErr(err int) error { } + func SCORSHWorker(keyring string, c_msg chan SCORSHmsg, c_status chan int) { // read the worker configuration file @@ -79,3 +91,12 @@ func SCORSHWorker(keyring string, c_msg chan SCORSHmsg, c_status chan int) { c_status <- ret } + +func main() { + + flag.Parse() + + + + +} |