Compare commits
55
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebf03a7180 | ||
|
|
69942ce540 | ||
|
|
a273c249c3 | ||
|
|
846874d33d | ||
|
|
2f74cd8d9b | ||
|
|
d01be6e393 | ||
|
|
2a3dae99f5 | ||
|
|
c95ca6c812 | ||
|
|
eb65f472dd | ||
|
|
444567ffb3 | ||
|
|
314bf3a4b0 | ||
|
|
3066cc477e | ||
|
|
9fd1181497 | ||
|
|
7c6d01212e | ||
|
|
59967af078 | ||
|
|
ed2deeda1c | ||
|
|
4cf92b18e5 | ||
|
|
77c3c2a0ff | ||
|
|
c7b58db24e | ||
|
|
7080b207a7 | ||
|
|
6d99144a75 | ||
|
|
235b87dcae | ||
|
|
6e84f467a8 | ||
|
|
995c3cd45e | ||
|
|
b630478985 | ||
|
|
7beadde4be | ||
|
|
48276890e8 | ||
|
|
8a282fa9c8 | ||
|
|
02c3c35d87 | ||
|
|
1b0a9b40a6 | ||
|
|
04e20cfccf | ||
|
|
b071896b10 | ||
|
|
4985adad00 | ||
|
|
685c51b7e0 | ||
|
|
3f86841d4b | ||
|
|
f84c50b97e | ||
|
|
277e0bd289 | ||
|
|
757b729986 | ||
|
|
bc013fde9f | ||
|
|
87d7e185d7 | ||
|
|
1b9990f02a | ||
|
|
e99dd58c66 | ||
|
|
13b77b3999 | ||
|
|
4df1e7ce7b | ||
|
|
acaee0d7e0 | ||
|
|
16480db7a2 | ||
|
|
2972326103 | ||
|
|
de000cb27d | ||
|
|
06849ebab4 | ||
|
|
caabb51ae0 | ||
|
|
456fa10664 | ||
|
|
6ad481eb82 | ||
|
|
4298c0509f | ||
|
|
bbe3e299ae | ||
|
|
7b1debd6d2 |
No files matched your search
Generated
+1
-1
@@ -254,7 +254,7 @@ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "matcha-cli"
|
name = "matcha-cli"
|
||||||
version = "26.8.0-beta.0"
|
version = "26.7.0-beta.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"assert_cmd",
|
"assert_cmd",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "matcha-cli"
|
name = "matcha-cli"
|
||||||
version = "26.8.0-beta.0"
|
version = "26.7.0-beta.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "The green-tea CLI: scaffold a project, generate controllers, steps and providers already wired into their module, and run with your runtime detected. One native binary, no JS runtime needed to install it."
|
description = "The CLI for Green Tea — scaffold and manage graph-based apps."
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/Expressive-Tea/matcha"
|
repository = "https://github.com/Expressive-Tea/matcha"
|
||||||
|
|
||||||
|
|||||||
@@ -1,32 +1,24 @@
|
|||||||
# matcha
|
# matcha
|
||||||
|
|
||||||
The [green-tea](https://github.com/Expressive-Tea/green-tea) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.
|
The [green-tea](https://git.svc.zoit.services/Green-Tea/core) CLI — scaffold, run, and generate green-tea apps from a single native binary. No JS runtime required to install or operate.
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo install matcha-cli
|
curl -fsSL https://git.svc.zoit.services/Green-Tea/matcha/raw/branch/main/install.sh | sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Builds from [crates.io](https://crates.io/crates/matcha-cli) and installs the `matcha`
|
Installs a prebuilt binary to `~/.local/bin` — no Rust required. Env vars go on
|
||||||
binary. Needs a Rust toolchain; takes a few seconds.
|
the `sh` side of the pipe:
|
||||||
|
|
||||||
**Prebuilt binary** (no Rust), from the latest GitHub release:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
curl -fsSL https://raw.githubusercontent.com/Expressive-Tea/matcha/main/install.sh | sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Drops the binary in `~/.local/bin`. Env vars go on the `sh` side of the pipe:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh
|
curl -fsSL …/install.sh | MATCHA_VERSION=v26.7.0 MATCHA_INSTALL_DIR=/usr/local/bin sh
|
||||||
```
|
```
|
||||||
|
|
||||||
**From git** (compiles the default branch):
|
**From source** (requires Rust — compiles and installs):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo install --git https://github.com/Expressive-Tea/matcha
|
cargo install --git https://git.svc.zoit.services/Green-Tea/matcha
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
+6
-9
@@ -1,17 +1,14 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# matcha installer — downloads a prebuilt binary from GitHub Releases.
|
# matcha installer — downloads a prebuilt binary from Gitea Releases.
|
||||||
# curl -fsSL <raw>/install.sh | sh
|
# curl -fsSL <raw>/install.sh | sh
|
||||||
# Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin),
|
# Env: MATCHA_VERSION (tag, default latest), MATCHA_INSTALL_DIR (default ~/.local/bin),
|
||||||
# MATCHA_REPO_BASE / MATCHA_API_BASE (override to install from the internal Gitea,
|
# MATCHA_REPO_BASE (default the Gitea repo URL).
|
||||||
# whose release API is GitHub-compatible for everything this script touches).
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# Public by default: the Gitea host is unreachable outside the network, and this script
|
REPO_BASE="${MATCHA_REPO_BASE:-https://git.svc.zoit.services/Green-Tea/matcha}"
|
||||||
# is what crates.io and the README point people at.
|
# The API lives at the host root (/api/v1/...), NOT under the repo path. Keep it
|
||||||
REPO_BASE="${MATCHA_REPO_BASE:-https://github.com/Expressive-Tea/matcha}"
|
# separate from REPO_BASE (which is used for release DOWNLOAD urls under the repo).
|
||||||
# The API lives on its own host, NOT under the repo path. Keep it separate from
|
API_BASE="${MATCHA_API_BASE:-https://git.svc.zoit.services/api/v1/repos/Green-Tea/matcha}"
|
||||||
# REPO_BASE (which is used for release DOWNLOAD urls under the repo).
|
|
||||||
API_BASE="${MATCHA_API_BASE:-https://api.github.com/repos/Expressive-Tea/matcha}"
|
|
||||||
INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}"
|
INSTALL_DIR="${MATCHA_INSTALL_DIR:-$HOME/.local/bin}"
|
||||||
|
|
||||||
err() { echo "matcha-install: $*" >&2; exit 1; }
|
err() { echo "matcha-install: $*" >&2; exit 1; }
|
||||||
|
|||||||
Reference in new issue
Block a user