run

Function run 

Source
pub fn run(
    output_snd: &XvcOutputSender,
    xvc_root: &XvcRoot,
    opts: RootCLI,
) -> Result<()>
Expand description

Entry point for xvc root

§Arguments

  • output: Buffer to write the result
  • xvc_root: The root of the current project
  • opts: CLI options

§Errors and Panics

  • It returns an error when output can’t be written by writeln! This probably leads to panic! in caller.
  • It returns an error when xvc_root cannot be converted to absolute path This should never happen if xvc_root properly constructed.