Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[CLI] Add a destroy app command #129

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

Open
mirkoCrobu wants to merge 7 commits into main
base: main
Choose a base branch
Loading
from issue_105_add_app_destroy_command

Conversation

@mirkoCrobu
Copy link
Contributor

@mirkoCrobu mirkoCrobu commented Dec 3, 2025

Motivation

closes #105

We could add a new app destroycommand (or a similar name) for stopping and removing all the data of an app.
In particular, we should do a docker-compose down and remove the .cache.

We should also consider adding a destroyed (or a better name) that is the default state of an app if it has not been run yet.
With this additional state, we would then be able to always return a state when listing the apps (right now apps and examples that have not been run, will show up as with no state).

Change description

Additional Notes

Reviewer checklist

  • PR addresses a single concern.
  • PR title and description are properly filled.
  • Changes will be merged in main.
  • Changes are covered by tests.
  • Logging is meaningful in case of troubleshooting.

@mirkoCrobu mirkoCrobu self-assigned this Dec 9, 2025
Copy link
Contributor Author

Add uninitialized status and set status information for app list

image

@mirkoCrobu mirkoCrobu requested review from a team and lucarin91 December 10, 2025 15:28
@mirkoCrobu mirkoCrobu marked this pull request as ready for review December 15, 2025 08:22
Copy link
Contributor

@lucarin91 lucarin91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also add an endpoint for doing this (maybe in a subsequent PR)

}

// TODO: merge this with the more efficient getAppStatusByPath
func getAppStatus(
Copy link
Contributor

@lucarin91 lucarin91 Dec 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would keep the TODO or add a FIXME, because I would like to remove this function and just use the getAppStatusByPath instead

Copy link
Contributor Author

@mirkoCrobu mirkoCrobu Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the TODO because I implemented it

Copy link
Contributor

@lucarin91 lucarin91 Dec 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, you don't, after your change we have two functions that do the same thing, the objective was to have just a single one.

Copy link
Contributor Author

@mirkoCrobu mirkoCrobu Dec 18, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah now I see what you mean, done by the following:

Copy link
Contributor Author

We should also add an endpoint for doing this (maybe in a subsequent PR)

[API] Add a destroy app command

@mirkoCrobu mirkoCrobu requested a review from a team December 17, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lucarin91 lucarin91 Awaiting requested review from lucarin91

Requested changes must be addressed to merge this pull request.

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add a destroy app command

AltStyle によって変換されたページ (->オリジナル) /