/spacchetti-cli

A CLI for Spacchetti that does some stuff, but does not do anything that Psc-Package already does.

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

spacchetti-cli

Build Status

Attention: See the Spacchetti docs first at https://spacchetti.readthedocs.io/

A CLI for Spacchetti that does some stuff, but does not do anything that Psc-Package already does.

Installation

Use the release archives or use NPM on Linux/OSX: https://github.com/justinwoo/npm-spacchetti-cli-simple

Features

LocalSetup

Do the boilerplate of the local project setup to override and add arbitrary packages See the Spacchetti docs about this here: https://spacchetti.readthedocs.io/en/latest/local-setup.html

InsDhall

Do the Ins-Dhall-ation of the local project setup, equivalent to:

NAME='local'
TARGET=.psc-package/$NAME/.set/packages.json
mkdir -p .psc-package/$NAME/.set
dhall-to-json --pretty <<< './packages.dhall' > $TARGET
echo wrote packages.json to $TARGET

Example

See this commit for an example of how this ends up being used: https://github.com/justinwoo/vidtracker/commit/9887cbbf238ff7fa74b0c47a6cb3b7cc5513327f