diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-24 22:11:26 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-24 22:11:26 (GMT) |
commit | a547fe88a42d1e0aebfc01d5d90dd21fc101fc2e (patch) | |
tree | 91881f9753215f7f19740b16798cc5c73421c386 /src/rhctl/switch_control.go | |
parent | c2ac2add756be8be1f74827bdc943636187e8bbf (diff) |
some more marshaller
Diffstat (limited to 'src/rhctl/switch_control.go')
-rw-r--r-- | src/rhctl/switch_control.go | 5 |
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 |