diff --git a/src/Commands/SecretCommand.php b/src/Commands/SecretCommand.php deleted file mode 100644 index 5ea03325..00000000 --- a/src/Commands/SecretCommand.php +++ /dev/null @@ -1,59 +0,0 @@ -setName('secret') - ->addArgument('environment', InputArgument::OPTIONAL, 'The environment name') - ->addOption('name', null, InputOption::VALUE_OPTIONAL, 'The secret name') - ->addOption('value', null, InputOption::VALUE_OPTIONAL, 'The secret value') - ->addOption('file', null, InputOption::VALUE_OPTIONAL, 'The file that contains the secret value') - ->setDescription('Create or update an environment secret'); - } - - /** - * Execute the command. - * - * @return void - */ - public function handle() - { - Helpers::ensure_api_token_is_available(); - - $this->vapor->storeSecret( - Manifest::id(), - $this->argument('environment'), - $this->option('name') ?? Helpers::ask('Name'), - $this->option('value') ?? $this->determineValue() - ); - - Helpers::info('Secret stored successfully.'); - Helpers::line('You should deploy the project using the "deploy" command to ensure the new secrets are available.'); - } - - /** - * Determine the secret's value. - * - * @return string - */ - protected function determineValue() - { - return $this->option('file') - ? file_get_contents($this->option('file')) - : Helpers::ask('Value'); - } -} diff --git a/vapor b/vapor index 0f57e093..4fea6192 100755 --- a/vapor +++ b/vapor @@ -172,7 +172,6 @@ $app->add(new Commands\VanityDomainDeleteCommand); // Secrets $app->add(new Commands\SecretListCommand); -$app->add(new Commands\SecretCommand); $app->add(new Commands\SecretPassportCommand); $app->add(new Commands\SecretDeleteCommand);