You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -28,11 +29,41 @@ protected function configure(): void {
28
29
$this
29
30
->setName('setupchecks')
30
31
->setDescription('Run setup checks and output the results')
32
+
->addArgument(
33
+
'type',
34
+
InputArgument::OPTIONAL,
35
+
'Category (or class) of setup checks to run ' . "\n" . '(e.g. "network" to run all the network-related checks or "OCA\\Settings\\SetupChecks\\InternetConnectivity" to run only the InternetConnectivity check)',
36
+
'all'
37
+
)
31
38
;
32
39
}
33
40
34
41
protectedfunctionexecute(InputInterface$input, OutputInterface$output): int {
35
-
$results = $this->setupCheckManager->runAll();
42
+
$limit = $input->getArgument('type');
43
+
44
+
if (!is_string($limit)) {
45
+
$output->writeln('<error>Invalid type specified</error>');
46
+
returnself::FAILURE;
47
+
}
48
+
49
+
switch ($limit) {
50
+
case'all': // run all checks (the default)
51
+
$results = $this->setupCheckManager->runAll();
52
+
break;
53
+
54
+
default: // limit checks to a specific category or class
0 commit comments