Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 33b7336

Browse files
committed
Update EditCredentialsCommand
- Added 'editor' to credentials.php - Updated the EditCredentialsCommand to use the config value
1 parent ba6d8a8 commit 33b7336

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/credentials.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
1515

1616
'cipher' => config('app.cipher'),
1717

18-
];
18+
'editor' => env('EDITOR', 'vi')
19+
20+
];

src/EditCredentialsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function handle(Credentials $credentials)
3939

4040
fwrite($handle, json_encode($decrypted, JSON_PRETTY_PRINT | JSON_FORCE_OBJECT));
4141

42-
$editor = env('EDITOR', 'vi');
42+
$editor = config('credential.editor', 'vi');
4343

4444
$process = new Process([$editor, $meta['uri']]);
4545

0 commit comments

Comments
 (0)