ocebuild.cli.commands.patch#

CLI entrypoint for the patch command.

Module Contents#

Functions#

read_schema(→ dict)

Reads the Sample.plist schema from the resolved OpenCorePkg version.

cli(env, cwd, out)

Patches an existing OpenCore configuration.

ocebuild.cli.commands.patch.read_schema(lockfile: ocebuild.cli.logging.Optional[dict] = None, **kwargs) dict[source]#

Reads the Sample.plist schema from the resolved OpenCorePkg version.

In case no lockfile is provided or no OpenCorePkg dependency is found, the latest version of the Sample.plist schema will be used.

Parameters:
  • lockfile – The lockfile to read the OpenCore version from (Optional).

  • kwargs – Additional keyword arguments to pass to get_configuration_schema.

Returns:

A dictionary representing failsafe values for the Sample.plist schema.

ocebuild.cli.commands.patch.cli(env, cwd, out)[source]#

Patches an existing OpenCore configuration.