axem-solutions / dem

Containerized Development Environment Manager for embedded development
Other
95 stars 15 forks source link

[FeatureRequest] Uninstall command - remove all images required by the Dev Env descriptor #135

Closed janosmurai closed 11 months ago

janosmurai commented 1 year ago

dem uninstall DEV_ENV_NAME

  1. The DEM should look for the DEV_ENV_NAME If it can’t find the Dev Env, raise an error and abort. If found, but the Dev Env is not installed. Raise a warning for the user and abort.
  2. Go through all the required images and remove those, which are not required anymore by any other Dev Env.
  3. In the Dev Env descriptor set the “installed” key to “False”.
  4. If the DEV_ENV_NAME is an empty string, then the DEM should raise an error. (Handled by typer)
  5. The DEM should autocomplete the DEV_ENV_NAME to the locally available Dev Envs.

image