Function brane_cli::check::handle

source ·
pub async fn handle(
    file: String,
    language: Language,
    user: Option<String>,
    profile: bool,
) -> Result<(), Error>
Expand description

Handles the brane check-subcommand, which attempts to validate a workflow against remote policy.

§Arguments

  • file: The path to the file to load as input. - means stdin.
  • language: The Language of the input file.
  • user: An override for the user in the instance file, if any.
  • profile: If true, show profile timings of the request if available.

§Errors

This function errors if we failed to perform the check.