aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/conf/main.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cmd/conf/main.go b/cmd/conf/main.go
new file mode 100644
index 0000000..fa59455
--- /dev/null
+++ b/cmd/conf/main.go
@@ -0,0 +1,16 @@
+package main
+
+import (
+ "fmt"
+
+ "dim13.org/acme"
+)
+
+func main() {
+ c, _ := acme.LoadConfig("acme.toml")
+ for _, v := range c.Desire {
+ fmt.Println("Provider", c.Provider[v.Provider])
+ fmt.Println("Account", c.Account[v.Account])
+ fmt.Printf("%+v\n", v)
+ }
+}