Function brane_ctl::upgrade::node

source ·
pub fn node(
    path: impl Into<PathBuf>,
    dry_run: bool,
    overwrite: bool,
    version: VersionFix,
) -> Result<(), Error>
Expand description

Converts old-style node.yml files to new-style ones.

§Arguments

  • path: The path fo the file or folder (to scour for files) to upgrade.
  • dry_run: Whether to only report which files to upgrade, instead of upgrading them.
  • overwrite: Whether to overwrite the files instead of creating new ones.
  • version: Whether to only consider files that are in a particular BRANE version.

§Errors

This function may error if we failed to read from disk.