X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fpsy%2Fpsysh%2Fsrc%2FCommand%2FExitCommand.php;fp=vendor%2Fpsy%2Fpsysh%2Fsrc%2FCommand%2FExitCommand.php;h=43398861235ab79019190f7b3864d85409ec2a0a;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/psy/psysh/src/Command/ExitCommand.php b/vendor/psy/psysh/src/Command/ExitCommand.php new file mode 100644 index 000000000..433988612 --- /dev/null +++ b/vendor/psy/psysh/src/Command/ExitCommand.php @@ -0,0 +1,52 @@ +setName('exit') + ->setAliases(['quit', 'q']) + ->setDefinition([]) + ->setDescription('End the current session and return to caller.') + ->setHelp( + <<<'HELP' +End the current session and return to caller. + +e.g. +>>> exit +HELP + ); + } + + /** + * {@inheritdoc} + */ + protected function execute(InputInterface $input, OutputInterface $output) + { + throw new BreakException('Goodbye'); + } +}