File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 {:commands [" run" {:command #'identity
1818 :flags [" -x" {:doc " flag x"
1919 :required required}]}]})
20- (with-out-str (cli/dispatch* (cmdspec-n false ) [" run" " -hx" ]))
21-
22- " NAME\n cli run — Returns its argument.\n\n SYNOPSIS\n cli run [-x] [<args>...]\n\n FLAGS\n -x, flag x (required)\n "
23- " NAME\n cli run — Returns its argument.\n\n SYNOPSIS\n cli run [-x] [<args>...]\n\n FLAGS\n -x, flag x (required)\n "
24- ; ; =>
2520
2621(deftest required-flag
2722 (testing " successful exit"
3732 (is (= expected (with-out-str (cli/dispatch* input args))))
3833 (cmdspec-1 false ) [" -h" ] " NAME\n cli \n\n SYNOPSIS\n cli [-x] [<args>...]\n\n FLAGS\n -x, flag x \n "
3934 (cmdspec-1 true ) [" -hx" ] " NAME\n cli \n\n SYNOPSIS\n cli [-x] [<args>...]\n\n FLAGS\n -x, flag x (required)\n "
40- (cmdspec-n false ) [" run" " -h" ] " NAME\n cli run — Returns its argument.\n\n SYNOPSIS\n cli run [-x] [<args>...]\n\n FLAGS\n -x, flag x \n "
41- (cmdspec-n true ) [" run" " -hx" ] " NAME\n cli run — Returns its argument.\n\n SYNOPSIS\n cli run [-x] [<args>...]\n\n FLAGS\n -x, flag x (required)\n " ))
35+ (cmdspec-n false ) [" run" " -h" ] " NAME\n cli run —— Returns its argument.\n\n SYNOPSIS\n cli run [-x] [<args>...]\n\n FLAGS\n -x, flag x \n "
36+ (cmdspec-n true ) [" run" " -hx" ] " NAME\n cli run —— Returns its argument.\n\n SYNOPSIS\n cli run [-x] [<args>...]\n\n FLAGS\n -x, flag x (required)\n " ))
4237
4338 (testing " unsuccessful exit"
4439 (are [input args expected]
You can’t perform that action at this time.
0 commit comments