summaryrefslogtreecommitdiff
path: root/scorsh.go
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-07-08 09:25:37 +0100
committerKatolaZ <katolaz@freaknet.org>2017-07-08 09:25:37 +0100
commitc63c8c8778cb497bba1b3d77e8810d2dd45d2e24 (patch)
tree677999d78ddc9db01a3d20a3e9652fae70130d61 /scorsh.go
parentc3f29e8540cc135286c8a9abc33aac8df8005389 (diff)
sandpit folder + experiments with YAML commands and configs
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()
+
+
+
+
+}