Clk Alias
FleetingFor commands (or very simple sequences of commands) that are used very often, one may find cumbersome to type them that often. They might want to reduce the number of keystroke to run them.
For instance, I triage my photographs using the succession of three commands:
- images wip-gather: gather all the photographs from the several possible input (phone, camera, etc.)
- docs photovideo import –cwd ~/perso/Images/wip –no-wait: put those photos in ipfs without waiting for confirmation for each image
- docs photovideo compute-all: compute the thumbnails and web images for each photo, so that I can easily watch them afterwards
This is so boring to type that I can create the following alias:
clk alias set images.roundtrip images wip-gather , docs photovideo import --cwd /home/sam/perso/Images/wip --no-wait , docs photovideo compute-all
Then I simply have to type clk images roundtrip
to run the whole stuff.
Notes linking here
- clk 101
- clk and contextual polymorphism
- clk command that define aliases
- clk encourage de scripter par abstraction
- clk path
- how I debug my k8s tests not running