Skip to main content

Module ui_helper

Module ui_helper 

Source
Expand description

UI installer helper — CLI arg parsing, path validation.

Ports functionality from scripts/lib/ui_installer_helper.sh:

  • Struct-based parsing for --dry-run, --dir, --force
  • System path validation (blocks sensitive directories)
  • Git clone/update helpers

§Validation Assertions

  • VAL-INFRA-015: CLI arg parsing with path validation

Structs§

UiArgs
Parsed common arguments for UI installer scripts.

Enums§

UiArgError
Errors that can occur during UI argument parsing.

Functions§

fix_ownership
Fix file ownership when run with sudo.
git_clone_or_update
Clone a git repository or update it if it already exists.
is_system_path
Check if a path targets a sensitive system directory.