Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/logreader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYaman Qalieh <ybq987@gmail.com>2021-03-06 04:38:50 +0300
committerYaman Qalieh <ybq987@gmail.com>2021-05-09 07:45:31 +0300
commit0ff3b5aa96cadc77b4152933687be280f0d94d3b (patch)
tree5a1cd17776b967a9bcc7b45b2f693f6da7cab6b3 /lib
parentb05b2f865e717b406e9d8e605bba5358bbc4a9d2 (diff)
Add return status to commands
Signed-off-by: Yaman Qalieh <ybq987@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Command/Tail.php1
-rw-r--r--lib/Command/Watch.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Command/Tail.php b/lib/Command/Tail.php
index ba57921..4022526 100644
--- a/lib/Command/Tail.php
+++ b/lib/Command/Tail.php
@@ -88,5 +88,6 @@ class Tail extends Base {
$watch = new Watch($this->formatter, $this->logIteratorFactory);
$watch->run(new StringInput(''), $output);
}
+ return 0;
}
}
diff --git a/lib/Command/Watch.php b/lib/Command/Watch.php
index e4e384d..b302a12 100644
--- a/lib/Command/Watch.php
+++ b/lib/Command/Watch.php
@@ -102,6 +102,7 @@ class Watch extends Base {
$lastId = $id;
}
}
+ return 0;
}
private function printItem(array $logItem, OutputInterface $output, int $messageWidth) {