More technically:
1. `<package>/releases.js` transforms the package's release API into a common
- formatt
+ format
- (i.e. HTML, CSV, TAB, or JSON into a specific JSON format)
- common release APIs are in `_common/` (i.e. `_common/github.js`)
2. `_webi/bootstrap.sh` is a template that exchanges system information for a
echo "Unpacking $pkg_download"
& tar xf "$pkg_download"
-
# Settle unpacked archive into place
echo "Install Location: $pkg_src_cmd"
New-Item "$pkg_src_bin" -ItemType Directory
return '-';
}
- if (/arm64|arm8|armv8/i.test(ua)) {
+ if (/aarch64|arm64|arm8|armv8/i.test(ua)) {
return 'arm64';
- } else if (/arm7|armv7/i.test(ua)) {
+ } else if (/aarch|arm7|armv7/i.test(ua)) {
return 'armv7l';
} else if (/arm6|armv6/i.test(ua)) {
return 'armv6l';
# Move single binary into root of temporary folder
& move "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" "$VERNAME"
-
# Settle unpacked archive into place
echo "New Name: $VERNAME"
---
-title: sd
-homepage: https://github.com/chmln/sd
+title: sd
+homepage: https://github.com/chmln/sd
tagline: |
sd is an intuitive find & replace CLI.
---
-<!--
--->
-
### Updating `sd`
`webi sd@stable`
Use the `@beta` tag for pre-releases.
-
## 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
+
+> 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
```bash
- sd 'original word' 'final word' ./file_to_be_changed
+sd 'original word' 'final word' ./file_to_be_changed
```
### Taking out word inside slashes from a given string
```bash
- echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1'
+echo "string output shown /word inside slashes/" | sd '.*(/.*/)' '$1'
/word inside slashes/
```
cat exm.txt| sd -s '@' ''
here is an example
```
-
-
powershell -Command "Start-Process msiexec -Wait -ArgumentList '/i','wsl_update_x64.msi','/quiet','/qn'"
```
-See also <https://github.com/microsoft/WSL/issues/5014>
+See also <https://github.com/microsoft/WSL/issues/5014#issuecomment-692432322>
### Error: Required Feature Not Installed