Crate typeline

Source
Expand description

githubgithub-buildcrates-iomsrvdocs-rs

An efficient, type-safe pipeline processing language.

§Usage Examles

§Add Leading Zeroes to Numbered Files

ls | tl lines r="foo_(?<id>\d+)\.txt" mv="foo_{id:02}.txt"

§Advent of Code (Day 1, Part 1, 2023)

tl <input.txt lines fe: r-m='\d' fc: head next tail end join to_int end sum

§Download all PNG Images from a Website

tl str="https://google.com" GET xpath="//@href" r-f="\.png$" GET enum-n write="{:02}.png"

Modules§

chain
cli
context
extension
job
liveness_analysis
operators
options
record_data
typeline_error
tyson
utils

Macros§

count
debugbreak
index_newtype
index_vec
smallbox
typelist

Constants§

NULL_STR
UNDEFINED_STR

Statics§

DEFAULT_EXTENSION_REGISTRY

Traits§

CliOptionsWithDefaultExtensions
ContextBuilderWithDefaultExtensions

Functions§

build_extension_registry