Skip to content

Commit fbe77c0

Browse files
author
Ricardo Kirkner
committed
Cross-command reference between autoscaling and resources commands
1 parent 7b8f379 commit fbe77c0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Command/Autoscaling/AutoscalingSettingsSetCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ protected function configure()
3434
->addProjectOption()
3535
->addEnvironmentOption();
3636

37-
$helpLines = ['Configure apps/workers for automatically scaling on an environment.'];
37+
$helpLines = [
38+
'Configure automatic scaling for apps or workers in an environment.',
39+
'',
40+
sprintf('You can also configure resources statically, by running: <info>%s resources:set</info>.', $this->config()->get('application.executable'))
41+
];
3842
if ($this->config()->has('service.autoscaling_help_url')) {
3943
$helpLines[] = '';
4044
$helpLines[] = 'For more information on autoscaling, see: <info>' . $this->config()->get('service.autoscaling_help_url') . '</info>';

src/Command/Resources/ResourcesSetCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ protected function configure()
5050
'',
5151
sprintf('Profile sizes are predefined CPU & memory values that can be viewed by running: <info>%s resources:sizes</info>', $this->config()->get('application.executable')),
5252
'',
53-
'If the same service and resource is specified on the command line multiple times, only the final value will be used.'
53+
'If the same service and resource is specified on the command line multiple times, only the final value will be used.',
54+
'',
55+
sprintf('You can also configure autoscaling, by running: <info>%s autoscaling:set</info>command.', $this->config()->get('application.executable'))
5456
];
5557
if ($this->config()->has('service.resources_help_url')) {
5658
$helpLines[] = '';

0 commit comments

Comments
 (0)