Skip to content

add config reset command and bootstrap --clean flag#89

Merged
Esity merged 1 commit intomainfrom
feature/config-reset-and-bootstrap-clean
Mar 30, 2026
Merged

add config reset command and bootstrap --clean flag#89
Esity merged 1 commit intomainfrom
feature/config-reset-and-bootstrap-clean

Conversation

@Esity
Copy link
Copy Markdown

@Esity Esity commented Mar 30, 2026

Summary

  • Add legionio config reset subcommand to wipe all *.json from ~/.legionio/settings/ (prompts for confirmation unless --force)
  • Add --clean flag to legionio bootstrap to clear settings before import
  • Skip ConfigScaffold.run during bootstrap when a source is provided — scaffolded empty files were silently conflicting with imported config

Closes #88

Test plan

  • bundle exec rspec spec/cli/config_reset_spec.rb — 12 examples, 0 failures
  • bundle exec rspec spec/cli/bootstrap_command_spec.rb — 69 examples, 0 failures
  • Full suite: 4084 examples, 0 failures
  • bundle exec rubocop on all changed files — 0 offenses

@Esity Esity requested a review from a team as a code owner March 30, 2026 20:47
@Esity Esity merged commit 39e14de into main Mar 30, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add config reset command and bootstrap --clean flag

1 participant