<?php

namespace App\Commands;

use App\Actions\EditAfter as EditAfterAction;
use LaravelZero\Framework\Commands\Command;

class EditAfter extends Command
{
    protected $signature = 'edit-after {--editor= : Open the config file in the specified <info>EDITOR</info> or the system default if none is specified.}';

    protected $description = 'Edit Config File. A new config file is created if one does not already exist.';

    public function handle()
    {
        app()->bind('console', function () {
            return $this;
        });

        app(EditAfterAction::class)();
    }
}

Revert "remove redundant edit-after command."
Revert "remove redundant edit-after command."

This reverts commit 34005c38
