diff options
| author | Eyal Posener <[email protected]> | 2020-04-09 19:07:58 +0300 |
|---|---|---|
| committer | Eyal Posener <[email protected]> | 2020-04-09 21:31:51 +0300 |
| commit | f929a1cfb4039a5519d84c2deff05cbaf05ce776 (patch) | |
| tree | 9bb705441dee435a190735387bf92349fa11e782 /complete_test.go | |
| parent | bcff2ec278afb628a8dcb7ded65ad9d3450e4121 (diff) | |
Add github actions
Diffstat (limited to 'complete_test.go')
| -rw-r--r-- | complete_test.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/complete_test.go b/complete_test.go index a7c6834..04b10cc 100644 --- a/complete_test.go +++ b/complete_test.go @@ -13,25 +13,25 @@ import ( var testCmd = &Command{ Flags: map[string]Predictor{"cmd-flag": nil}, Sub: map[string]*Command{ - "flags": &Command{ + "flags": { Flags: map[string]Predictor{ "values": set{"a", "a a", "b"}, "something": set{""}, "nothing": nil, }, }, - "sub1": &Command{ + "sub1": { Flags: map[string]Predictor{"flag1": nil}, Sub: map[string]*Command{ - "sub11": &Command{ + "sub11": { Flags: map[string]Predictor{"flag11": nil}, }, - "sub12": &Command{}, + "sub12": {}, }, Args: set{"arg1", "arg2"}, }, - "sub2": &Command{}, - "args": &Command{ + "sub2": {}, + "args": { Args: set{"a", "a a", "b"}, }, }, |
