def fmt()

in terranova/commands/binds.py [0:0]


def fmt(path: str) -> None:
    """Reformat your configuration in the standard style."""
    # Find all resources manifests
    paths = resource_dirs(path)

    # Format all paths
    for full_path, rel_path in paths:
        Log.action(f"Formatting: {rel_path}")

        # Mount terraform context
        terraform = mount_context(full_path)

        # Format resources files
        try:
            terraform.fmt()
        except ErrorReturnCode as err:
            raise Exit(code=err.exit_code) from err