diff options
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() + + + + +} |