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

CLI command to reset local state #109

Open
tegefaulkes opened this issue Jan 30, 2024 · 2 comments
Open

CLI command to reset local state #109

tegefaulkes opened this issue Jan 30, 2024 · 2 comments
Labels
development Standard development

Comments

@tegefaulkes
Copy link
Contributor

Specification

This needs to be further speced out. For now I'm thinking it's an agent command that will just clear all of the local state. But wouldn't that just be a bootstrap or start with --fresh?

Additional context

Related #40 (comment)

Tasks

  1. Expand the specification
@tegefaulkes tegefaulkes added the development Standard development label Jan 30, 2024
@tegefaulkes
Copy link
Contributor Author

@CMCDragonkai could you add some requirements and context to this?

@CMCDragonkai
Copy link
Member

I'm thinking there should be 2 similar commands:

  1. pk agent restart - this restarts the agent - ideally in some zero down time sense - note that it would need to "work well" with any systemd or process orchestrator that runs the PK agent in foreground
  2. pk agent destroy - yes --fresh is simlar, but the difference here is that it's about stopping and destroying the state (kind of like if you got to wipe everything out quickly)

This extra destroy command might be dangerous, and should require some additional prompt. Like "are you sure?" and users could force it with --force.

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

No branches or pull requests

2 participants