summaryrefslogtreecommitdiff
path: root/src/rhctl/switch_control.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-24 22:11:26 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-24 22:11:26 (GMT)
commita547fe88a42d1e0aebfc01d5d90dd21fc101fc2e (patch)
tree91881f9753215f7f19740b16798cc5c73421c386 /src/rhctl/switch_control.go
parentc2ac2add756be8be1f74827bdc943636187e8bbf (diff)
some more marshaller
Diffstat (limited to 'src/rhctl/switch_control.go')
-rw-r--r--src/rhctl/switch_control.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rhctl/switch_control.go b/src/rhctl/switch_control.go
index 235fd95..200bae7 100644
--- a/src/rhctl/switch_control.go
+++ b/src/rhctl/switch_control.go
@@ -85,6 +85,11 @@ func (c CommandType) String() string {
return "unknown"
}
+func (c CommandType) MarshalText() (data []byte, err error) {
+ data = []byte(c.String())
+ return
+}
+
type Command struct {
Type CommandType
Args []string