Skip to content

Fix snapshot delete bug and improve script robustness#4623

Open
amussara wants to merge 1 commit intobasecamp:devfrom
amussara:fix/snapshot-delete-bug-and-script-improvements
Open

Fix snapshot delete bug and improve script robustness#4623
amussara wants to merge 1 commit intobasecamp:devfrom
amussara:fix/snapshot-delete-bug-and-script-improvements

Conversation

@amussara
Copy link

Bug fix in omarchy-snapshot delete command + refactored scripts with validation.

…across scripts

- Fix omarchy-snapshot: delete command used undefined $config variable,
  now properly iterates all snapper configs. Extract get_snapper_configs()
  helper function and add unknown command handling.

- Improve omarchy-font-set: refactor into discrete functions (validate_font,
  update_alacritty, update_kitty, update_ghostty, update_system_configs,
  restart_components) for better maintainability. Add set -e and suppress
  errors from pkill when terminal processes aren't running.

- Improve omarchy-theme-install: add URL validation (validate_repo_url),
  theme name extraction (extract_theme_name), clone helper (clone_theme),
  and theme content validation (validate_theme_contents) that warns on
  missing colors.toml.

- Improve omarchy-webapp-install: add URL validation (validate_url), app
  name sanitization (sanitize_app_name), icon download helper (download_icon)
  with proper error handling, and desktop entry creation function
  (create_desktop_entry). Validate local icon existence.

- Improve omarchy-migrate: add progress tracking (count_pending_migrations),
  extract run_migration() function with better error messages, add gum
  availability check before prompting, and report completion summary.

- Fix omarchy-install-dev-env: add missing deno and zig to usage string,
  add catch-all case for unknown environments.
@dhh
Copy link
Member

dhh commented Feb 17, 2026

You're going to have to offer more information on a PR than that. Can't just dump a 400-line change without any context on what's being fixed or why.

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.

2 participants