File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ Using `env` to invoke `pkgx` is typical for tools that have no POSIX location.
2222The ` -S ` parameter is required to pass multiple arguments.
2323{% endhint %}
2424
25-
2625## Including Additional pkgs
2726
2827Scripts are the glue that allows open source to be composed into powerful new
@@ -47,22 +46,14 @@ source <(pkgx dev --shellcode)
4746
4847{% endhint %}
4948
50-
5149## Scripting for Various Languages & Their Dependencies
5250
5351### Python
5452
5553Use ` uv ` to import PyPi dependencies:
5654
5755``` python
58- # !/usr/bin/env -S pkgx +python@3.11 uv run --script
59-
60- # /// script
61- # dependencies = [
62- # "requests<3",
63- # "rich",
64- # ]
65- # ///
56+ # !/usr/bin/env -S pkgx +python@3.11 uv run --with requests<=3 --with rich
6657
6758import requests
6859from rich.pretty import pprint
@@ -107,19 +98,16 @@ Use [Scriptisto]:
10798# snip… type `pkgx scriptisto new cargo` for the rest.
10899```
109100
110-
111101## Mash
112102
113103We think ` pkgx ` scripting is so powerful that we made a whole package
114104manager to show it off.
115105
116106> [ https://github.com/pkgxdev/mash ] ( https://github.com/pkgxdev/mash )
117107
118-
119108## Other Examples
120109
121110We make use of ` pkgx ` scripting all over our repositories. Check them out!
122111
123-
124112[ shebang ] : https://en.wikipedia.org/wiki/Shebang_(Unix)
125113[ Scriptisto ] : https://github.com/igor-petruk/scriptisto
You can’t perform that action at this time.
0 commit comments