diff --git a/app/Commands/EnvironmentVariables.php b/app/Commands/EnvironmentVariables.php index 1fb533a..e95d15e 100644 --- a/app/Commands/EnvironmentVariables.php +++ b/app/Commands/EnvironmentVariables.php @@ -162,33 +162,3 @@ protected function collectVariables(Environment $environment): array ->toArray(); } } - -// foreach ($toUpdate as $key) { -// $this->form()->prompt($key, fn($resolver) => $resolver->fromInput( -// fn($value) => text( -// label: $key, -// required: true, -// default: $value ?? collect($environment->environmentVariables)->firstWhere('key', $key)['value'] ?? '', -// ) -// )); -// } - -// spin( -// fn() => $this->client->environments()->replaceVariables( -// new ReplaceEnvironmentVariablesRequestData( -// environmentId: $environment->id, -// variables: collect($this->form()->filled()) -// ->map(fn($field) => [ -// 'key' => $field->key, -// 'value' => $field->value(), -// ]) -// ->values() -// ->toArray(), -// ) -// ), -// 'Replacing variables...', -// ); - -// success('Environment variables replaced'); -// } -// }