commands: Added 'NewEmptyRequest'
Matt Bell committed
Oct 15, 2014 at 17:01 UTC
09311d4babdf806f63ed5eb48eb59163ab17cfb8
1 file changed
+4
commands/request.go
+4
@@ -96,6 +96,10 @@ func (r *Request) convertOptions(options map[string]Option) error {
96
return nil
97
}
98
99
+func NewEmptyRequest() *Request {
100
+ return NewRequest(nil, nil, nil)
101
+}
102
+
103
func NewRequest(path []string, opts map[string]interface{}, args []string) *Request {
104
if path == nil {
105
path = make([]string, 0)