build_scan_command_for_executor

Function build_scan_command_for_executor 

Source
pub fn build_scan_command_for_executor(
    package: &str,
    do_clamav: bool,
    do_trivy: bool,
    do_semgrep: bool,
    do_shellcheck: bool,
    do_virustotal: bool,
    do_custom: bool,
    dry_run: bool,
) -> String
Expand description

What: Build scan command string for PTY execution (excluding aur-sleuth).

Inputs:

  • package: Package name to scan.
  • do_clamav/do_trivy/do_semgrep/do_shellcheck/do_virustotal/do_custom: Scan configuration flags.
  • dry_run: Whether to run in dry-run mode.

Output:

  • Command string ready for PTY execution (no hold tail, excludes aur-sleuth).

Details:

  • Builds scan pipeline commands excluding aur-sleuth (which runs separately in terminal).
  • Sets environment variables for scan configuration.
  • Removes hold tail since we’re not spawning a terminal.