Skip to content

Commit

Permalink
We’re telling the story in the wrong order
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jun 16, 2022
1 parent 64fc5dc commit 2111b3a
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,7 @@ even (especially) *how the world works*.

# tea/cli 0.2.0

tea/cli is a universal interpreter:

```sh
$ tea https://github.com/teaxyz/demos/blob/main/ai.py input.png
tea: installing python^3
pip: installing dall-e-2

$ curl https://github.com/teaxyz/demos/blob/main/ai.py
#!/usr/bin/env tea
# ---
# dependencies:
# python.org: ~3.8
# python.org/pip/requests: ^2.18
# optipng.sourceforge.net: '*' # optipng will be in `PATH`
# ---
```

> <details><summary><i>Is this safe?</i></summary>
>
> If you’re worried about executing scripts from the Internet: *read them
> first!* tea only executes what the script tells it to; the dependency
> requirements are embedded in the script as YAML front-matter.
> </details>
&nbsp;


tea is a universal (and magical) virtual‑environment manager:
tea is a universal virtual‑environment manager:

```
$ deno
Expand All @@ -60,10 +31,11 @@ deno 1.22.1
$ env
PATH=/opt/deno.land/v1.20.3/bin:/usr/bin:/bin
SRCROOT=/src/my-project
VERSION=…
```

Don’t worry, this magic also works with [VSCode].
Don’t worry! This magic also works with [VSCode]. And everything else too.

> <details><summary><i>What is this sourcery?</i></summary>
>
Expand All @@ -85,6 +57,36 @@ Don’t worry, this magic also works with [VSCode].
&nbsp;


tea is also a universal interpreter:

```sh
$ tea https://github.com/teaxyz/demos/blob/main/ai.py input.png
tea: installing python^3
pip: installing dall-e-2

$ curl https://github.com/teaxyz/demos/blob/main/ai.py
#!/usr/bin/env tea
# ---
# dependencies:
# python.org: ~3.8
# python.org/pip/requests: ^2.18
# optipng.sourceforge.net: '*' # optipng will be in `PATH`
# ---
```

> <details><summary><i>Is this safe?</i></summary>
>
> If you’re worried about executing scripts from the Internet: *read them
> first!* tea only executes what the script tells it to; the dependency
> requirements are embedded in the script as YAML front-matter.
> </details>
&nbsp;



## A Brief Diatribe

Every programming language, every build system, every compiler, web server,
Expand Down

0 comments on commit 2111b3a

Please sign in to comment.