Skip to content

Commit 52375e5

Browse files
committed
Update mash instantiations
1 parent 90a4f63 commit 52375e5

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For us neophiliacs we have written a [`mash`] script to upgrade your `pkgx`
2222
packages:
2323

2424
```sh
25-
pkgx mash pkgx/cache upgrade
25+
pkgx mash upgrade
2626
```
2727

2828
## How do I “install” pkgs?
@@ -74,7 +74,7 @@ commands then those commands are invoked in that environment.
7474
We have created a [`mash`] script to list everything `pkgx` has downloaded:
7575

7676
```sh
77-
pkgx mash pkgx/cache ls
77+
pkgx mash ls
7878
```
7979

8080
All packages are encapsulated in individual, versioned folders in `~/.pkgx` just

docs/pkgx.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ deno 1.35.3
6262
`pkgx foo` runs the latest “foo” that **is installed**.
6363

6464
If you want to ensure the latest version of “foo” is installed, use
65-
`pkgx mash pkgx/upgrade foo`.
65+
`pkgx mash upgrade foo`.
6666

6767
## Adding Additional Packages to the Execution Environment
6868

@@ -158,10 +158,10 @@ package already installed to their system. For these cases we provide an
158158
`ensure` script:
159159
160160
```sh
161-
$ pkgx mash pkgx/ensure git --version
161+
$ pkgx mash ensure git --version
162162
# ^^ runs system `git` if installed, otherwise installs the `pkgx` pkg
163163
164-
$ eval "$(pkgx mash pkgx/ensure +git)"
164+
$ eval "$(pkgx mash ensure +git)"
165165
# ^^ adds pkgx git to the environment *unless* it is installed to the system
166166
```
167167
@@ -196,7 +196,7 @@ Longer term we will make a tool `pkgq` to help with these operations.
196196
you have (any) newer versions installed use this command:
197197
198198
```sh
199-
$ pkgx mash pkgx/upgrade
199+
$ pkgx mash upgrade
200200
updating: /Users/mxcl/.pkgx/python.org/v3.11.11
201201
# snip…
202202
```
@@ -206,7 +206,7 @@ updating: /Users/mxcl/.pkgx/python.org/v3.11.11
206206
The `pkgx` download cache can get large over time. To prune older versions:
207207
208208
```sh
209-
$ pkgx mash pkgx/prune
209+
$ pkgx mash prune
210210
pruning: ~/.pkgx/deno.land/v1.39.4
211211
pruning: ~/.pkgx/deno.land/v1.46.3
212212
# snip…
@@ -220,7 +220,7 @@ reinstall them next time you need them.
220220
ie. what versions _could be_ run by `pkgx`:
221221
222222
```sh
223-
$ pkgx mash pkgx/inventory git
223+
$ pkgx mash inventory git
224224
2.38.1
225225
2.39.0
226226
# snip…
@@ -229,7 +229,7 @@ $ pkgx mash pkgx/inventory git
229229
### Listing What is Downloaded
230230
231231
```sh
232-
$ mash pkgx/ls
232+
$ pkgx mash ls
233233
234234
Parent Directory │Version
235235
────────────────────────────────┼──────────

0 commit comments

Comments
 (0)