macprefs¶
Commands¶
prefs-export¶
Export preferences.
prefs-export [OPTIONS]
Options
- -K, --deploy-key <deploy_key>¶
Key for pushing to Git repository.
- -c, --commit¶
Commit the changes with Git.
- -d, --debug¶
Enable debug logging.
- -o, --output-directory <output_directory>¶
Where to store the exported data.
macprefs-install-job¶
Job installer.
macprefs-install-job [OPTIONS]
Options
- -K, --deploy-key <deploy_key>¶
Key for pushing to Git repository.
- -d, --debug¶
Enable debug logging.
- -o, --output-directory <output_directory>¶
Where to store the exported data.
Library¶
- async macprefs.plist2defaults.plist_to_defaults_commands(domain: str, root: Mapping[str, Mapping[str, Any] | list[Any] | bool | int | float | str | datetime | bytes], debug: bool = False) AsyncIterator[str] ¶
Given a
PlistRoot
, generate a series ofdefaults write
commands.
- async macprefs.processing.remove_data_fields(root: Mapping[str, Mapping[str, Any] | list[Any] | bool | int | float | str | datetime | bytes]) Mapping[str, Mapping[str, Any] | list[Any] | bool | int | float | str | datetime | bytes] ¶
Clean up data fields from a
PlistRoot
.
- async macprefs.processing.remove_data_fields_list(pl_list: Sequence[Mapping[str, Any] | list[Any] | bool | int | float | str | datetime | bytes]) Sequence[Mapping[str, Any] | list[Any] | bool | int | float | str | datetime | bytes] ¶
Clean up data fields from a
PlistList
.
- async macprefs.utils.is_simple(x: Mapping[Any, list[Any] | Mapping[str, Any] | bytes] | Sequence[list[Any] | Mapping[str, Any] | bytes] | ValuesView[str]) bool ¶
Check if a value is a simple type of value.
- macprefs.utils.setup_logging(debug: bool | None = False) None ¶
Shared function to enable logging.
- macprefs.utils.to_str(x: AnyStr) str ¶
Convert a value to a string for shell.