Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 616 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 616 Bytes

Layer

A dead simple tool for pipelining sequences of commands that automatically cashes artifacts.

curl -L https://github.com/anana-s/layer/releases/latest/download/layer.tar.xz | tar x --zstd

Requirements

mktemp tar zstd

Usage

First create a base layer:

layer init base "sleep 5 && echo sweet! >> pineapple.txt"

Then we can execute the base layer or run commands:

./base
./base run "cat pineapple.txt"
# sweet!

Commands run this way are not persited.

We can stack new layers on top of existing ones:

./base to greet "cat pineapple.txt"
./greet
# sweet!