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,
) -> StringExpand 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
PTYexecution (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.