X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fconsolidation%2Fannotated-command%2Ftests%2Fsrc%2FExampleAnnotatedCommand.php;fp=vendor%2Fconsolidation%2Fannotated-command%2Ftests%2Fsrc%2FExampleAnnotatedCommand.php;h=6b4c6c5fc8c5a07f9b7690180ba57ba1d767ba94;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/vendor/consolidation/annotated-command/tests/src/ExampleAnnotatedCommand.php b/vendor/consolidation/annotated-command/tests/src/ExampleAnnotatedCommand.php new file mode 100644 index 000000000..6b4c6c5fc --- /dev/null +++ b/vendor/consolidation/annotated-command/tests/src/ExampleAnnotatedCommand.php @@ -0,0 +1,63 @@ +getArgument('one'); + $two = $input->getArgument('two'); + $multiple = $input->getOption('multiple'); + $flip = $input->getOption('flip'); + + $result = $this->myCat($one, $two, $multiple, $flip); + + // We could also just use $output->writeln($result) here, + // but calling processResults enables the use of output + // formatters. Note also that if you use processResults, you + // should correctly inject the command processor into your + // annotated command via AnnotatedCommand::setCommandProcessor(). + return $this->processResults($input, $output, $result); + } +}