Skip to content
This repository was archived by the owner on Aug 15, 2026. It is now read-only.

Fix bash import issues and add dual-command toggle - #2

Merged
studiowebux merged 1 commit into
mainfrom
fix/bash-import-issues
Feb 28, 2026
Merged

studiowebux merged 1 commit into
mainfrom
fix/bash-import-issues

Conversation

@studiowebux

Copy link
Copy Markdown
Owner

Summary

  • Reverse parser rejects shell variables ($VAR, ${VAR}, $(...)) with clear error instead of importing them as literal strings
  • Non-modifying commands (--get-*, --list-*, --query-*, --state, --version, --runtime-to-permanent, --check-config) now skipped gracefully instead of erroring
  • Zone-less modifying commands (--add-service=http without --zone) infer default zone public
  • Broader reload matching (flag-based instead of exact string match)
  • Generator supports dual-command mode: emits paired permanent + runtime commands, omitting --reload
  • Runtime toggle checkbox in output toolbar with localStorage persistence

Test plan

  • Paste commands with $VAR — should show error, not import silently
  • Paste commands without --zone — should import into public zone
  • Paste firewall-cmd --list-all — should show as skipped, not error
  • Toggle Runtime on — output shows paired permanent+runtime commands, no --reload
  • Toggle Runtime off — output shows permanent-only + --reload (existing behavior)
  • Preference persists across page reload

🤖 Generated with Claude Code

…ggle

Reverse parser: reject shell variables ($VAR/${VAR}), skip non-modifying
commands gracefully, infer default zone "public" for zone-less commands,
broaden reload matching. Generator: add runtime mode that emits paired
permanent+runtime commands without --reload. UI: Runtime toggle checkbox
with localStorage persistence.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@studiowebux
studiowebux merged commit e95dcc6 into main Feb 28, 2026
1 check passed
@studiowebux
studiowebux deleted the fix/bash-import-issues branch February 28, 2026 03:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant