|
222 | 222 | </code></pre><ul><li>environment variables can be defined to string values:</li></ul><pre><code>&&== env SOME_ENV some-value |
223 | 223 | </code></pre><ul><li>environment variables can be defined to absolute paths:</li></ul><pre><code>&&== env SOME_PATH ./relative-path |
224 | 224 | </code></pre><ul><li>the <code>$PATH</code> environment variable can be appended with absolute paths:</li></ul><pre><code>&&== path ./bin |
225 | | -</code></pre><ul><li>environment variables, similar to <code>$PATH</code>, can be appended with absolute paths:</li></ul><pre><code>&&== env-path-append ./bin |
| 225 | +</code></pre><ul><li>environment variables, similar to <code>$PATH</code>, can be appended with absolute paths:</li></ul><pre><code>&&== env-path-append SOME_ENV_LIKE_PATH ./bin |
226 | 226 | </code></pre><ul><li>environment variables can be removed:</li></ul><pre><code>&&== env-exclude SOME_ENV_1 SOME_ENV_2 |
227 | 227 | </code></pre><ul><li>environment variables can be provided with defaults:</li></ul><pre><code>&&== env-fallback SOME_ENV default-value |
228 | 228 | </code></pre><ul><li>other library source files can be included:</li></ul><pre><code>&& _/file-relative-to-the-current-source-file-parent |
|
247 | 247 | </code></pre><ul><li>select a scriptlet from the menu, |
248 | 248 | and print its body:</li></ul><pre><code>z-run select-body |
249 | 249 | </code></pre><p><strong>TBD:</strong></p><ul><li>compiling libraries and using them;</li><li>executing remote scriptlets over SSH;</li><li>using a library as a standalone tool with <code>z-run --exec</code>;</li><li>executing standalone scriptlets with <code>z-run --scriptlet</code>;</li><li>executing standalone scriptlets with <code>z-run --scriptlet-exec</code>;</li><li>executing standalone templates with <code>z-run --template</code>;</li><li><code>z-run --input</code>, <code>z-run --select</code>, and <code>z-run --fzf</code>;</li><li><code>z-run --shell</code>;</li><li><code>z-run --export=shell-functions</code>;</li><li><code>z-run --version</code>;</li><li><code>z-run --help</code>;</li><li><code>z-run --manual</code>;</li><li><code>z-run --manual-man</code>;</li><li><code>z-run --manual-html</code>;</li><li><code>z-run --readme</code>;</li><li><code>z-run --readme-html</code>;</li><li><code>z-run --sbom</code>;</li><li><code>z-run --sbom-html</code>;</li><li><code>z-run --sbom-json</code>;</li><li><code>z-run --sources-md5</code>;</li><li><code>z-run --sources-cpio | gunzip | cpio -i -t</code>;</li></ul><hr><h2>Installation</h2><h3>Download prebuilt executables</h3><p>One should see the <a href=https://github.com/volution/z-run/releases>releases page on GitHub</a>, |
250 | | -where pre-built executables (only Intel 64bit architectures) are available for:</p><ul><li>Linux (the main development and testing environment) --<br><a href=https://github.com/volution/z-run/releases/download/v0.18.1/z-run--linux--v0.18.1>https://github.com/volution/z-run/releases/download/v0.18.1/z-run--linux--v0.18.1</a></li><li>OSX (only Intel CPU's) (the second targeted environment) --<br><a href=https://github.com/volution/z-run/releases/download/v0.18.1/z-run--darwin--v0.18.1>https://github.com/volution/z-run/releases/download/v0.18.1/z-run--darwin--v0.18.1</a></li><li>OpenBSD (seldom tested) --<br><a href=https://github.com/volution/z-run/releases/download/v0.18.1/z-run--openbsd--v0.18.1>https://github.com/volution/z-run/releases/download/v0.18.1/z-run--openbsd--v0.18.1</a></li><li>FreeBSD (seldom tested) --<br><a href=https://github.com/volution/z-run/releases/download/v0.18.1/z-run--freebsd--v0.18.1>https://github.com/volution/z-run/releases/download/v0.18.1/z-run--freebsd--v0.18.1</a></li></ul><p>Also, each of these files are signed with my PGP key <code>5A974037A6FD8839</code>, thus do check the signature.</p><p>For example:</p><ul><li>import my PGP key:</li></ul><pre><code>curl -s https://github.com/cipriancraciun.gpg | gpg2 --import |
| 250 | +where pre-built executables (only Intel 64bit architectures) are available for:</p><ul><li>Linux (the main development and testing environment) --<br><a href=https://github.com/volution/z-run/releases/download/v0.19.1/z-run--linux--v0.19.1>https://github.com/volution/z-run/releases/download/v0.19.1/z-run--linux--v0.19.1</a></li><li>OSX (only Intel CPU's) (the second targeted environment) --<br><a href=https://github.com/volution/z-run/releases/download/v0.19.1/z-run--darwin--v0.19.1>https://github.com/volution/z-run/releases/download/v0.19.1/z-run--darwin--v0.19.1</a></li><li>OpenBSD (seldom tested) --<br><a href=https://github.com/volution/z-run/releases/download/v0.19.1/z-run--openbsd--v0.19.1>https://github.com/volution/z-run/releases/download/v0.19.1/z-run--openbsd--v0.19.1</a></li><li>FreeBSD (seldom tested) --<br><a href=https://github.com/volution/z-run/releases/download/v0.19.1/z-run--freebsd--v0.19.1>https://github.com/volution/z-run/releases/download/v0.19.1/z-run--freebsd--v0.19.1</a></li></ul><p>Also, each of these files are signed with my PGP key <code>5A974037A6FD8839</code>, thus do check the signature.</p><p>For example:</p><ul><li>import my PGP key:</li></ul><pre><code>curl -s https://github.com/cipriancraciun.gpg | gpg2 --import |
251 | 251 | </code></pre><pre><code>gpg: key 5A974037A6FD8839: public key "Ciprian Dorin Craciun < [email protected]>" imported |
252 | 252 | gpg: Total number processed: 1 |
253 | 253 | gpg: imported: 1 |
254 | 254 | </code></pre><ul><li>download the executable and signature (replace the <code>linux</code> token with <code>darwin</code> (for OSX), <code>freebsd</code> or <code>openbsd</code>):</li></ul><pre><code>curl \ |
255 | 255 | -s -S -f -L \ |
256 | 256 | -o /tmp/z-run \ |
257 | | - https://github.com/volution/z-run/releases/download/v0.18.1/z-run--linux--v0.18.1 \ |
| 257 | + https://github.com/volution/z-run/releases/download/v0.19.1/z-run--linux--v0.19.1 \ |
258 | 258 | # |
259 | 259 |
|
260 | 260 | curl \ |
261 | 261 | -s -S -f -L \ |
262 | 262 | -o /tmp/z-run.asc \ |
263 | | - https://github.com/volution/z-run/releases/download/v0.18.1/z-run--linux--v0.18.1.asc \ |
| 263 | + https://github.com/volution/z-run/releases/download/v0.19.1/z-run--linux--v0.19.1.asc \ |
264 | 264 | # |
265 | 265 | </code></pre><ul><li>verify the executable:</li></ul><pre><code>gpg2 --verify /tmp/z-run.asc /tmp/z-run |
266 | 266 | </code></pre><ul><li><strong>check that the key is <code>58FC2194FCC2478399CB220C5A974037A6FD8839</code></strong>:</li></ul><pre><code>gpg: assuming signed data in '/tmp/z-run' |
|
275 | 275 | </code></pre><ul><li>copy the executable on the <code>$PATH</code>:</li></ul><pre><code>sudo cp /tmp/z-run /usr/local/bin/z-run |
276 | 276 | </code></pre><ul><li>check that it works:</li></ul><pre><code>z-run --version |
277 | 277 | </code></pre><pre><code>* tool : z-run |
278 | | -* version : 0.19.0 |
| 278 | +* version : 0.19.1 |
279 | 279 | * executable : /usr/local/bin/z-run |
280 | | -* build target : release, linux-amd64, go1.17.6, gc |
281 | | -* build number : 12170, 2022-01-19-23-30-43 |
| 280 | +* build target : release, linux-amd64, go1.18.3, gc |
| 281 | +* build number : 12286, 2022-07-26-10-01-10 |
282 | 282 | * code & issues : https://github.com/volution/z-run |
283 | | -* sources git : a6e6ce1dbd63eb871ad0280d6dbafdbc9e7960d9 |
284 | | -* sources hash : d7ba8be84e85329ac187984750ecd242 |
| 283 | +* sources git : 4420e1f27c2480595ac98e409727c6810498710b |
| 284 | +* sources hash : daf4d73647bc52c3efe3f60f7711439a |
285 | 285 | * uname node : some-workstation |
286 | | -* uname system : Linux, 5.15.6-1-default, x86_64 |
287 | | -* uname hash : 7c8643e588e6fbb4063d2643de27c39b |
| 286 | +* uname system : Linux, 5.18.4-1-default, x86_64 |
| 287 | +* uname hash : 636fe534b72441e2ccb478f9bd56d653 |
288 | 288 | </code></pre><h3>Build from sources</h3><p>Go is a prerequisite; |
289 | 289 | one can install it from any Linux or BSD package manager, |
290 | 290 | or OSX's <code>brew</code>, |
|
423 | 423 | to any platform it supports.</p><p>Because Rust is less portable than Go; |
424 | 424 | for example, Rust doesn't consider OpenBSD as a "tier-1" platform.</p><h3>What other open-source code does it depend on?</h3><ul><li><a href=https://github.com/junegunn/fzf>fzf</a> |
425 | 425 | (via my custom <a href=https://github.com/cipriancraciun/fzf>fork</a>);</li><li><a href=https://github.com/colinmarc/cdb>cdb</a> |
426 | | -(via my custom <a href=github.com/cipriancraciun/go-cdb-lib>fork</a>;</li><li><a href=github.com/jessevdk/go-flags>go-flags</a>;</li><li><a href=github.com/peterh/liner>liner</a>;</li><li>also see the <a href=./sources/go.mod>go.mod</a> file |
| 426 | +(via my custom <a href=github.com/cipriancraciun/go-cdb-lib>fork</a>);</li><li><a href=github.com/jessevdk/go-flags>go-flags</a>;</li><li><a href=github.com/peterh/liner>liner</a>;</li><li>also see the <a href=./sources/go.mod>go.mod</a> file |
427 | 427 | for other minor dependencies; </li></ul><h3>Some related readings... </h3><ul><li><a href= https://slack.engineering/development-environments-at-slack/>Development Environments at Slack </a></li></ul><hr><h2>Notice (copyright and licensing) </h2><h3>Authors </h3><p>Ciprian Dorin Craciun: </p><ul><li><a href= mailto:[email protected]>[email protected]</a> or <a href= mailto:[email protected]>[email protected]</a></li><li><a href= https://volution.ro/ciprian>https://volution.ro/ciprian </a></li><li><a href= https://github.com/volution>https://github.com/volution </a></li><li><a href= https://github.com/cipriancraciun>https://github.com/cipriancraciun </a></li></ul><p>Please also see the <a href= ./documentation/sbom/sbom.md>SBOM (Software Bill of Materials) </a> |
428 | 428 | for links this project's dependencies and their authors.</p><h3>Notice -- short version</h3><p>The code is licensed under GPL 3 or later.</p><p>This is the same license as used by |
429 | 429 | Linux, Git, MySQL/MariaDB, WordPress, F-Droid, |
|
0 commit comments