Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site:delete exit status bug/enhancement #2581

Open
chrisrrowland opened this issue May 1, 2024 · 1 comment
Open

site:delete exit status bug/enhancement #2581

chrisrrowland opened this issue May 1, 2024 · 1 comment

Comments

@chrisrrowland
Copy link

chrisrrowland commented May 1, 2024

Platform

( ) MacOS
( ) Linux
(x) WSL2

Installed Via

I don't recall.

PHP Version

( ) 7.4x
( ) 8.0
(x) 8.1

Terminus Version

Terminus 3.2.2

Command Executed

terminus site:delete --no-interaction 478eae98-ad9f-4f76-a3f9-17ff652985c5
 [notice] You must downgrade your site to sandbox before deleting.

echo $?
0

Expected behavior

I expect a site:delete command that does not result in the site being deleted to return a non-zero exit status.

Actual behavior

Bug The command failed because the site plan needs to be changed to sandbox prior to deleting, but it returned a status (0) indicating success. It should have returned a non-zero status.

Feature Request Additionally I would request a new flag such as "--force" that will delete a site regardless of plan, so it's not necessary to implement this automation as a transactionless 2 step process.

@kporras07
Copy link
Contributor

Tracking internally as BUGS-7938 and FEAT-1377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants