From 7cbf213aaf00b4e16eccb46fb0d61d2f2153375d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 6 Mar 2024 12:00:18 +0100 Subject: [PATCH] wip #6772 @1 --- src/app/Jobs/CommandLine.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/app/Jobs/CommandLine.php diff --git a/src/app/Jobs/CommandLine.php b/src/app/Jobs/CommandLine.php new file mode 100644 index 0000000..2e4eb97 --- /dev/null +++ b/src/app/Jobs/CommandLine.php @@ -0,0 +1,22 @@ +_command = $command; + } + + public function handle() + { + if (is_string($this->_command)) { + `$this->_command`; + } else if ($this->_command instanceof \Cubist\Util\CommandLine) { + $this->_command->execute(); + } + } +} -- 2.39.5