Skip to main content

handle_packages_command

Function handle_packages_command 

Source
pub async fn handle_packages_command(
    file: &str,
    os: Option<&str>,
    packages: Option<&[String]>,
    changed_files: Option<&[String]>,
    git_base: Option<&str>,
    git_head: Option<&str>,
    include_reasoning: bool,
    max_parallel: Option<u16>,
    ignore_patterns: Option<&[String]>,
    skip_if: &[String],
    include_if: &[String],
    workspace_type: Option<&[WorkspaceType]>,
    output: OutputType,
) -> Result<String, Box<dyn Error + Send + Sync>>
Expand description

ยงErrors

  • If the workspace path is invalid or cannot be read
  • If the workspace Cargo.toml file cannot be read or parsed
  • If any package Cargo.toml file cannot be read or parsed
  • If package analysis fails when determining affected packages
  • If JSON serialization fails
  • If the git-diff feature is required but not enabled
  • If git diff analysis fails when git_base and git_head are provided