You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: adds a --force flag to vm stop and remove (#178)
Signed-off-by: Sam Berning <[email protected]>
Issue #, if available: #171
*Description of changes:*
Adds a force flag to `finch vm stop` and `finch vm remove`. This gives
us a native way to recover from "unrecognized system status" as seen in
#171.
*Testing done:*
Unit testing, E2E testing.
Force "unrecognized system status" by messing with the Lima instance
```
$ ./_output/bin/finch vm stop
FATA[0000] unrecognized system status
$ ./_output/bin/finch vm stop --force
INFO[0000] Forcibly stopping Finch virtual machine...
INFO[0001] Finch virtual machine stopped successfully
$ ./_output/bin/finch vm start
INFO[0000] Starting existing Finch virtual machine...
INFO[0038] Finch virtual machine started successfully
```
```
$ ./_output/bin/finch vm stop
FATA[0000] unrecognized system status
$ ./_output/bin/finch vm remove --force
INFO[0000] Forcibly removing Finch virtual machine...
INFO[0000] Finch virtual machine removed successfully
$ ./_output/bin/finch vm status
Nonexistent
```
- [x] I've reviewed the guidance in CONTRIBUTING.md
#### License Acceptance
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license.
Signed-off-by: Sam Berning <[email protected]>
0 commit comments