santa

Crates.iosanta
lib.rssanta
version0.1.0
sourcesrc
created_at2022-04-01 06:40:44.760369
updated_at2022-04-01 06:40:44.760369
descriptiona tool that manages packages across different platforms
homepage
repositoryhttps://github.com/tylerbutler/santa
max_upload_size
id560144
size69,877
Tyler Butler (tylerbutler)

documentation

README

Santa

Santa helps you install packages across multiple platforms and package managers.

Santa might be useful to you if...

...you regularly use tools that are not installed by default

You're a modern developer. You can get by with grep, sure, but you'd much prefer ripgrep. The problem is, its not installed. So you're stuck installing it yourself -- using whatever package manager you have available.

Santa gives you one command to install the packages in your own "standard developer toolkit."

...you regularly use different computers running different operating systems or system architectures

Isn't it annoying when you log into a machine and it doesn't have your preferred tools? Or your tool isn't installable using apt, but of course, you don't remember that... So you waste 10 minutes looking up where you can install it from.

Santa simplifies this workflow. Santa knows where your packages can be installed from and will install it from the best one available.

Configuration

Santa uses a configuration file to determine what packages you want to install and the order of preference of package managers. Using this configuration file Santa can automatically install packages using your preferred package manager.

The configuration file is stored at ~/.config/santa/config.yaml. Below is an example:

sources:
  - brew
  - aur
  - cargo
  - npm
  - apt
  - nix
  - scoop
packages:
  - bat
  - bottom
  - chezmoi

Development to do

  • Config should be the primary thing the app passes around. Data should be loaded into the config.
  • Per-elf overrides for packages (e.g. git-delta is delta in scoop) aren't handled consistently.
  • Centralize the logic for loading the right PackageData for a given package taking into account the elf that the package is configured to use. There should be a single place that answers the question, "is this package enabled?" That should be the Config. App should load data, use it to initialize config (i.e. merge the two)

Commands

Build:

cargo build [--release]

Check for unused dependencies

First, install cargo-udeps:

cargo install cargo-udeps --locked

Then run it:

cargo +nightly udeps
Commit count: 6

cargo fmt