mittwald / mittwald/cli

Unset context when object is deleted

Open
#1,266 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
8
Forks
2
Avg merge
13h 26m
Merged PRs (30d)
35

Description

Is your feature request related to a problem? Please describe.
After deleting an object, for example an app using mw app uninstall the context for this app ist still set (if it was set before).

Describe the solution you'd like
Specific commands that delete/uninstall an context object should unset the context:

  • app uninstall
  • project delete

Describe alternatives you've considered

  • Interactively ask if the context should be removed
  • Add flag --unset-context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace the CLI entry points for app uninstall and project delete, then inspect how the current context is stored and updated. Implement the requested behavior so deleting either context object removes its context, and verify both commands no longer leave a deleted object selected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.