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
$this->stdErr->writeln('This environment supports the Metrics API');
225
-
$this->stdErr->writeln(\sprintf('You can see disk usage much more accurately by running: <info>%s disk</info>', $this->config()->get('application.executable')));
223
+
$this->stdErr->writeln('');
224
+
225
+
if ($this->config()->getWithDefault('api.metrics', false) && $this->config()->isCommandEnabled('metrics:disk')) {
$help .= sprintf("\nThis command is deprecated and will be removed in a future version.\nTo see disk metrics, run: <comment>%s disk</comment>", $this->config()->get('application.executable'));
54
+
}
55
+
$this->setHelp($help);
50
56
}
51
57
52
58
/**
@@ -159,6 +165,13 @@ protected function execute(InputInterface $input, OutputInterface $output)
159
165
$this->stdErr->writeln(
160
166
'To increase the available space, edit the <info>disk</info> key in the application configuration.'
161
167
);
168
+
169
+
if ($this->config()->getWithDefault('api.metrics', false) && $this->config()->isCommandEnabled('metrics:disk')) {
$stdErr->writeln("\n<fg=yellow;options=bold>Warning</>\nVerbose mode is enabled. Do not copy and paste the output as it may contain sensitive headers.\n");
109
+
$stdErr->writeln("\n<fg=yellow;options=bold>Warning:</>\nVerbose mode is enabled. Do not copy and paste the output as it may contain sensitive headers.\n");
0 commit comments