How lq920320/rs-alias-manager works
rs-alias-manager is a Tauri desktop GUI for managing Bash, Zsh, and Fish aliases. Users browse and search aliases, create or edit them, import/export JSON, and apply changes through the shell configuration backend; they can also import templates and configure application settings. The graph includes documented backup, update, and watcher capabilities, though some implementations were not sampled, so those relationships are omitted or marked unverified.
Main entry points: alias_page.rs Alias workspace · lib.rs Tauri command registration · shell_config.rs Shell config access · commands.rs Invoke wrappers
Components 29
Desktop interface
- App router
src/app.rs - Alias workspace
src/pages/alias_page.rs - Alias controls
src/components/alias_list.rs - Config viewer
src/components/config_viewer.rs - Alias search
src/components/search_bar.rs - Template library UI
src/pages/template_page.rs - Template controls
src/components/template_list.rs - Settings UI
src/components/settings_form.rs - Reactive state
src/state/app_state.rs - Invoke wrappers
src/api/commands.rs
Tauri command layer
- Tauri command registration
src-tauri/src/lib.rs - Alias commands
src-tauri/src/commands/alias_cmds.rs - Template commands
src-tauri/src/commands/template_cmds.rs - Settings commands
src-tauri/src/commands/settings_cmds.rs - Backup commands
src-tauri/src/commands/backup_cmds.rs - Update commands
src-tauri/src/commands/update_cmds.rs
Shell configuration
- Shell config access
src-tauri/src/services/shell_config.rs - Alias parser
src-tauri/src/services/alias_parser.rs - Atomic writer
src-tauri/src/services/safe_writer.rs - Shell config files
- Shell detection
src-tauri/src/models/shell_type.rs
Settings and extensions
- Settings persistence
src-tauri/src/services/app_settings.rs - Template catalog
src-tauri/src/services/template_library.rs - Custom template store
src-tauri/src/services/user_template_store.rs - Config backup
src-tauri/src/services/config_backup.rs - Config watcher
src-tauri/src/services/config_watcher.rs - Release update check
src-tauri/src/services/update_checker.rs
Other components
- Desktop user
- Release service
Connections 36
- Desktop user → App router: uses
- App router → Alias workspace: routes to
src/app.rs - App router → Template library UI: routes to
src/app.rs - App router → Settings UI: routes to
src/app.rs - Alias workspace → Alias controls: renders
src/pages/alias_page.rs - Alias workspace → Config viewer: renders
src/pages/alias_page.rs - Alias workspace → Alias search: renders
src/pages/alias_page.rs - Alias workspace → Invoke wrappers: invokes
src/pages/alias_page.rs - Alias workspace → Reactive state: updates
src/pages/alias_page.rs - Alias search → Reactive state: filters via
src/components/search_bar.rs - Template library UI → Template controls: renders
src/pages/template_page.rs - Template library UI → Invoke wrappers: invokes
src/pages/template_page.rs - Template library UI → Reactive state: updates
src/pages/template_page.rs - Settings UI → Invoke wrappers: invokes
src/components/settings_form.rs - Invoke wrappers → Tauri command registration: invokes commands
src/api/commands.rs - Tauri command registration → Alias commands: registers
src-tauri/src/lib.rs - Tauri command registration → Template commands: registers
src-tauri/src/lib.rs - Tauri command registration → Settings commands: registers
- Tauri command registration → Backup commands: registers
- Tauri command registration → Update commands: registers
- Alias commands → Shell config access: delegates
src-tauri/src/commands/alias_cmds.rs - Alias commands → Config backup: backs up
src-tauri/src/commands/alias_cmds.rs - Shell config access → Alias parser: parses with
src-tauri/src/services/shell_config.rs - Shell config access → Atomic writer: writes via
src-tauri/src/services/shell_config.rs - Shell config access → Shell detection: selects shell
src-tauri/src/services/shell_config.rs - Shell config access → Shell config files: reads and writes
- Template commands → Template catalog: loads
src-tauri/src/commands/template_cmds.rs - Template commands → Custom template store: manages
src-tauri/src/commands/template_cmds.rs - Template commands → Shell config access: imports into
src-tauri/src/commands/template_cmds.rs - Settings commands → Settings persistence: persists
- Backup commands → Config backup: delegates
- Config backup → Atomic writer: writes via
src-tauri/src/services/config_backup.rs - Release update check → Release service: checks releases
src-tauri/src/services/update_checker.rs - Update commands → Release update check: checks
- Config watcher → Shell config files: watches
- Config watcher → Invoke wrappers: signals changes