diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rhctl/conf.go | 4 | ||||
-rw-r--r-- | src/rhctl/main.go | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/rhctl/conf.go b/src/rhctl/conf.go index 2dfb9ec..47a51b8 100644 --- a/src/rhctl/conf.go +++ b/src/rhctl/conf.go @@ -34,6 +34,10 @@ type Config struct { Device string `toml:"dev"` Baudrate Baudrate `toml:"baud"` Timeout Duration `toml:"timeout"` + Ports []struct { + Name string `toml:"name"` + Number uint `toml:"number"` + } } Servers map[string]struct { diff --git a/src/rhctl/main.go b/src/rhctl/main.go index f529265..2aaf7aa 100644 --- a/src/rhctl/main.go +++ b/src/rhctl/main.go @@ -76,6 +76,7 @@ func main() { return } rhl.Printf("just started...") + rhdl.Printf("configuration: %+v", conf) sw, err := SwitchInit(conf) if err != nil { |