@@ -17,39 +17,24 @@ mash up millions of open source packages into monstrously powerful scripts.
1717## Quick Start
1818
1919``` sh
20- brew install pkgxdev/made/mash || curl https://mash. pkgx.sh | sh
20+ brew install pkgxdev/made/mash || curl https://pkgx.sh | sh
2121```
2222
2323> [ !NOTE]
2424> ` mash ` is a plain POSIX script. All it needs is ` bash ` , ` curl ` , and ` pkgx ` .
25- > So if you like you can just download it by itself.
25+ > So if you like install the deps and just download it by itself.
2626
2727## Getting Started
2828
29- ``` sh
30- $ mash # or https://mash.pkgx.sh
31- # ^^ lists all script categories
32- ```
33-
34- You can browse script listings with the TUI or at [ mash.pkgx.sh] :
35-
36- ``` sh
37- $ mash ai # or https://mash.pkgx.sh/ai/
38- # ^^ lists all ai scripts
39- ```
40-
41- > [ !NOTE]
42- > The above lists all user submitted scripts in the ` ai ` category.
43-
44- Once you’ve found a script you want to run:
29+ Visit [ mash.pkgx.sh] to see what scripts are available. Once you’ve found a
30+ script you want to run:
4531
4632``` sh
47- $ mash ai chat --help # or https://mash.pkgx.sh/ai/chat/
33+ mash transcribe --help # or https://mash.pkgx.sh/mxcl/transcribe
4834```
4935
5036  ;
5137
52-
5338## Contributing Scripts
5439
5540### Writing Scripts
@@ -68,24 +53,13 @@ Generally it is sensible to specify constrained versions:
6853
6954### Naming Scripts
7055
71- ` mash ` operates with a “categorization by default is good” philosophy. Your
72- scripts must be categorized or namespaced with your user.
73-
74- Thus if you add a script named ` foo ` it can only be used via
75- ` mash username/foo ` . But if you add a script called ` foo-bar ` if will be
76- listed if a user types ` mash foo ` :
77-
78- ``` sh
79- $ mash foo
80-
81- mash foo bar # your description about `foo bar` is shown here
82- mash foo other-script # …
83- ```
56+ Names are first-come, first served. Please practice taste. We reserve the
57+ right to manage names.
8458
8559> [ !TIP]
8660> Extensions (eg. ` .sh ` , ` .ts ` ) are * recommended* for GitHub readability.
8761> They will be stripped from the mash execution name, eg. ` foo-bar.ts ` is
88- > invoked via ` mash foo bar ` and not ` mash foo bar.ts `
62+ > invoked via ` mash foo- bar ` and not ` mash foo- bar.ts `
8963
9064### Installing Language Dependencies
9165
@@ -143,8 +117,8 @@ available.
143117Assuming a script named ` foo-bar ` , while debugging just:
144118
145119``` sh
146- $ chmod +x scripts/foo-bar
147- $ ./scripts/foo-bar
120+ chmod +x scripts/foo-bar
121+ ./scripts/foo-bar
148122```
149123
150124After pushing we will index your script within 60 minutes.
@@ -158,16 +132,6 @@ Once indexed your script can be run with:
158132> If you can visit https://mash.pkgx.sh/USERNAME/SCRIPT-NAME then you’re
159133> script has been indexed.
160134
161- > [ !NOTE]
162- > * Categorized scripts occur on a first come first served basis. If you
163- > create a script called ` foo-bar ` and someone already did that then you are
164- > too late and users can only call your script with ` mash youruser/foo-bar ` .
165- > * Updates are fetched automatically, there is no versioning at this time.
166- > * Single letter categorizations are ignored, eg ` ./scripts/f-u ` will not be
167- > indexed or made available to mash. If you have a particularly good single
168- > letter category that you want an exception made, open a discussion and
169- > let’s chat!
170-
171135> [ !NOTE]
172136> ### Naming Guidelines: A Call for Consideration
173137> Think for a little about the names you are picking. We reserve the right
@@ -206,8 +170,8 @@ pkg names, just type what you would type to run the command.
206170
207171### Documenting Your Script
208172
209- Rewrite the README in your fork so there is a ` ## mash category scriptname `
210- section. If your script is not globally categorized then you would do
173+ Rewrite the README in your fork so there is a ` ## mash scriptname `
174+ section. If your script is not the first to get a name then you would do
211175` ## mash username/scriptname ` instead.
212176
213177* The paragraph after the ` ## ` will be the [ mash.pkgx.sh] description
@@ -231,23 +195,23 @@ https://github.com/mxcl/mash
231195directly via ` pkgx ` :
232196
233197``` sh
234- $ curl -O https://raw.githubusercontent.com/mxcl/mash/main/scripts/gh-stargazer
235- $ pkgx ./gh-stargazer
198+ curl -O https://raw.githubusercontent.com/mxcl/mash/main/scripts/transcribe
199+ pkgx ./transcribe
236200```
237201
238202Even ` pkgx ` isn’t required, they can source the dependencies themselves and
239203run the script manually:
240204
241205``` sh
242- $ bash ./stargazer
206+ $ bash ./transcribe
243207# ^^ they will need to read the script to determine deps and interpreter
244208```
245209
246210Hackers can use your script without installing ` pkgx ` or ` mash ` first via our
247211cURL one-liner. This executes the script but doesn’t install anything:
248212
249213``` sh
250- sh <( curl https://mash.pkgx.sh) < category > < scriptname >
214+ sh <( curl https://mash.pkgx.sh) transcribe
251215```
252216
253217
0 commit comments