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

Commit

Permalink
Merge pull request #28 from ZeroThe2nd/update-editor-documentation
Browse files Browse the repository at this point in the history
Update editor doc/config
  • Loading branch information
mpociot authored Oct 16, 2020
2 parents d9a0a35 + 33b7336 commit 417c66e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ With the built-in edit command, you can easily edit your existing credentials. T
```bash
php artisan credentials:edit
```

Optionally, you can change the used editor by adding the following to your .env file:

```
EDITOR=nano
```

![Credentials Demo](https://beyondco.de/github/credentials.gif)

## Installation
Expand Down
4 changes: 3 additions & 1 deletion config/credentials.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@

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

];
'editor' => env('EDITOR', 'vi')

];
2 changes: 1 addition & 1 deletion src/EditCredentialsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function handle(Credentials $credentials)

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

$editor = env('EDITOR', 'vi');
$editor = config('credential.editor', 'vi');

This comment has been minimized.

Copy link
@tbanov

tbanov Nov 30, 2020

This should be credentials


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

Expand Down

0 comments on commit 417c66e

Please sign in to comment.