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

bolu61/layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages