mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-05-16 21:56:33 +00:00
Stacked on the modifications PR. Now that no live code path references
the per-package fetchers, the shared HTTP/parsing helpers, the
in-process normalizer, or the example template, delete them. Pure
deletion — no behavior change.
- ~93 per-package <pkg>/releases.js fetcher modules.
- _common/{brew,fetcher,git-tag,gitea,github,github-source,
githubish,githubish-source}.js shared HTTP/parsing helpers.
- _webi/normalize.js in-process normalization layer (cache files
arrive normalized from webicached).
- _example/releases.js fetcher template for new packages.
The Go cache daemon (webicached) is now the sole producer of release
metadata; the Node process never makes an upstream request.
title, homepage, tagline
| title | homepage | tagline |
|---|---|---|
| sd | https://github.com/chmln/sd | sd is an intuitive find & replace CLI. |
To update or switch versions, run webi sd@stable (or @v0.7, @beta, etc).
Files
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.local/bin/sd
Cheat Sheet
sd is a productive and faster replacement of sed and awk command used for editing files in command line interface,it uses regex syntax similar to those used in JavaScript and Python
Usage of sd:
Replacing Text in a File
sd 'original word' 'final word' ./file_to_be_changed
Taking out word inside slashes from a given string
echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1'
/word inside slashes/
Using the string mode (-s)
cat exm.txt
here is an @example
cat exm.txt| sd -s '@' ''
here is an example