Skip to content

Commit 7a0fdae

Browse files
Merge pull request #106 from joedixon/chore/document-command-options
Documents command options
2 parents 19bd73b + 3d305ab commit 7a0fdae

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

src/Commands/Activate.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ class Activate extends EnvironmentAwareCommand
1616
*
1717
* @var string
1818
*/
19-
protected $signature = 'sidecar:activate {--pre-warm}';
19+
protected $signature = 'sidecar:activate
20+
{--pre-warm : Send warming requests to Sidecar functions}';
2021

2122
/**
2223
* The console command description.
2324
*
2425
* @var string
2526
*/
26-
protected $description = 'Activate Sidecar functions that have already been deployed.';
27+
protected $description = 'Activate Sidecar functions that have already been deployed';
2728

2829
/**
2930
* @throws NoFunctionsRegisteredException

src/Commands/Configure.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Configure extends Command
2828
*
2929
* @var string
3030
*/
31-
protected $description = 'Interactively configure your Sidecar AWS environment variables.';
31+
protected $description = 'Interactively configure your Sidecar AWS environment variables';
3232

3333
/**
3434
* @var string
@@ -70,11 +70,11 @@ public function handle()
7070

7171
$this->line(' ');
7272
$this->info('Done! Here are your environment variables:');
73-
$this->line('SIDECAR_ACCESS_KEY_ID=' . $credentials['key']);
74-
$this->line('SIDECAR_SECRET_ACCESS_KEY=' . $credentials['secret']);
75-
$this->line('SIDECAR_REGION=' . $this->region);
76-
$this->line('SIDECAR_ARTIFACT_BUCKET_NAME=' . $bucket);
77-
$this->line('SIDECAR_EXECUTION_ROLE=' . $role);
73+
$this->line('SIDECAR_ACCESS_KEY_ID='.$credentials['key']);
74+
$this->line('SIDECAR_SECRET_ACCESS_KEY='.$credentials['secret']);
75+
$this->line('SIDECAR_REGION='.$this->region);
76+
$this->line('SIDECAR_ARTIFACT_BUCKET_NAME='.$bucket);
77+
$this->line('SIDECAR_EXECUTION_ROLE='.$role);
7878
$this->line(' ');
7979
$this->info('They will work in any environment.');
8080
}
@@ -92,9 +92,9 @@ public function client($class)
9292
'version' => 'latest',
9393
'credentials' => [
9494
'key' => $this->key,
95-
'secret' => $this->secret
96-
]
97-
]
95+
'secret' => $this->secret,
96+
],
97+
],
9898
]);
9999
}
100100

src/Commands/Deploy.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ class Deploy extends EnvironmentAwareCommand
1616
*
1717
* @var string
1818
*/
19-
protected $signature = 'sidecar:deploy {--activate} {--pre-warm}';
19+
protected $signature = 'sidecar:deploy
20+
{--activate : Activate the deployment after deploying}
21+
{--pre-warm : Send warming requests to Sidecar functions}';
2022

2123
/**
2224
* The console command description.
2325
*
2426
* @var string
2527
*/
26-
protected $description = 'Deploy Sidecar functions.';
28+
protected $description = 'Deploy Sidecar functions';
2729

2830
/**
2931
* @throws NoFunctionsRegisteredException

src/Commands/Install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Install extends Command
2323
*
2424
* @var string
2525
*/
26-
protected $description = 'Install the Sidecar config file into your app.';
26+
protected $description = 'Install the Sidecar config file into your app';
2727

2828
public function __construct()
2929
{
@@ -40,7 +40,7 @@ public function __construct()
4040
public function handle()
4141
{
4242
Artisan::call('vendor:publish', [
43-
'--provider' => SidecarServiceProvider::class
43+
'--provider' => SidecarServiceProvider::class,
4444
]);
4545

4646
$this->info('Config file published!');

src/Commands/Warm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Warm extends EnvironmentAwareCommand
2222
*
2323
* @var string
2424
*/
25-
protected $description = 'Send warming requests to Sidecar functions.';
25+
protected $description = 'Send warming requests to Sidecar functions';
2626

2727
/**
2828
* @throws Exception

0 commit comments

Comments
 (0)