From c63c8c8778cb497bba1b3d77e8810d2dd45d2e24 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sat, 8 Jul 2017 09:25:37 +0100 Subject: sandpit folder + experiments with YAML commands and configs --- scorsh.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'scorsh.go') diff --git a/scorsh.go b/scorsh.go index cf8e5f0..a5adbb8 100644 --- a/scorsh.go +++ b/scorsh.go @@ -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 @@ -78,4 +90,13 @@ func SCORSHWorker(keyring string, c_msg chan SCORSHmsg, c_status chan int) { c_status <- ret +} + +func main() { + + flag.Parse() + + + + } -- cgit v1.2.3