cutler 0.19.5

Powerful, declarative settings management for your Mac, with speed.
Documentation
<div align="center">

<img src="assets/logo.png" width="180px">

# 🍎 cutler

#### Setup automation for your Mac

[![Crates.io Downloads](https://img.shields.io/crates/d/cutler?style=social&logo=Rust)](https://crates.io/crates/cutler)
[![Rust Tests](https://github.com/machlit/cutler/actions/workflows/tests.yml/badge.svg)](https://github.com/machlit/cutler/actions/workflows/tests.yml)

Pre-built binaries support **macOS Big Sur (11.0) or later** versions.

</div>

## Quick Start

```bash
# Self-installing script
# See below sections for other methods.
curl -fsSL https://machlit.github.io/cutler/install.sh | /bin/bash

# Initialize a configuration file.
# Basic template includes preferences, Homebrew and external commands.
cutler init

# Modify using your preferred editor.
nano ~/.config/cutler/config.toml

# Apply your preferences.
cutler apply
```

## What is cutler?

cutler simplifies the macOS setup pipeline by:

- providing a declarative way to set system settings, without touching the Settings app,
- wrapping around package managers for easy apps/tooling installation, and
- by providing first-class support for external commands to ensure easy extensibility.

All of this happens with a single `cutler.toml` file in your config directory.

## How it works

For backend functionality over system preferences, cutler wraps around the preferences APIs exposed by macOS. This allows for direct and instant feedback by just restarting the corresponding services related to the preference.

For wrapping around tooling, cutler includes mature implementations for extracting the data from the selected package managers.
Sensitive actions (e.g. installing) are currently outsourced to remain as close to the original functionality as possible.

cutler is still in development and changes in functionality may be common during this stage.

## Useful Links

- [Resources]#resources
- [Installation]#installation
- [Goals]#goals
- [Contributing]#contributing
- [License]#license

## Resources

- [**Complete Documentation (Cookbook)**]https://machlit.github.io/cutler
- [macOS defaults list]https://macos-defaults.com (useful if you're starting out with declaring bare-metal system preferences and have not previously used `defaults`)

## Installation

### Self-install (recommended)

```bash
curl -fsSL https://machlit.github.io/cutler/install.sh | /bin/bash
```

### Using Homebrew

```bash
brew install machlit/tap/cutler
```

### Using cargo

```bash
cargo install cutler
```

### Using mise

```bash
mise use -g cargo:cutler
```

## Goals

The universal goal is simple - provide a reliable way to automate the Mac setup so that you don't have to overthink about it. This consists of the following:

- Reliable restoration of system preferences.
- Reliable restoration of apps/tools using some sort of backend.
- Customizability and authority over certain commands and other stuff.
- Backup and restoration features for advanced things such as fonts, App Store apps.
- ... and more which aren't noted here.

These are all possible features cutler needs to stabilize in order to achieve a v1 release for now.

## Contributing

View the [Contribution Guidelines](https://machlit.github.io/cutler/guidelines/contributing.html) to learn more about contributing to cutler. It also contains resources such as code snippets to make your contribution workflow easier.

## License

This project is permissively licensed and free forever. See the license files mentioned below for the details:

- Apache Software License 2.0 [(LICENSE-APACHE)]https://github.com/machlit/cutler/blob/master/LICENSE-APACHE
- MIT License [(LICENSE-MIT)]https://github.com/machlit/cutler/blob/master/LICENSE-MIT