summaryrefslogtreecommitdiff
path: root/scorsh.go
diff options
context:
space:
mode:
Diffstat (limited to 'scorsh.go')
-rw-r--r--scorsh.go21
1 files changed, 21 insertions, 0 deletions
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
@@ -79,3 +91,12 @@ func SCORSHWorker(keyring string, c_msg chan SCORSHmsg, c_status chan int) {
c_status <- ret
}
+
+func main() {
+
+ flag.Parse()
+
+
+
+
+}