Commit 18c50f34 authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands: Added 'NewEmptyRequest'

parent 50528758
......@@ -96,6 +96,10 @@ func (r *Request) convertOptions(options map[string]Option) error {
return nil
}
func NewEmptyRequest() *Request {
return NewRequest(nil, nil, nil)
}
func NewRequest(path []string, opts map[string]interface{}, args []string) *Request {
if path == nil {
path = make([]string, 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment