Skip to content

Commit d42a9dc

Browse files
feat(cli): esrun upgrade (self-update); doc fixes; surface CLI types on site
- esrun upgrade: built-in self-update — finds the latest GitHub release for the target, downloads/extracts it, and replaces the running binary in place (self_update + rustls). Mirrors the installer. USAGE + install page updated to use it instead of re-running curl. - site: document `esrun upgrade` and `esrun types` on the /api/cli page (options + usage), incl. the @opentf/esrun-types package - guide: multi-line the loop examples (no more cramped single-line for/await) - fs page: Glob example is a clean one-liner (match), not a single-line loop
1 parent 3888aff commit d42a9dc

9 files changed

Lines changed: 496 additions & 14 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ pre-`0.1.0` and the public API is unstable.
88

99
### Added
1010

11+
- **`esrun upgrade`** — self-update built into the CLI: finds the latest GitHub
12+
release for the platform, downloads + extracts it, and replaces the running
13+
binary in place (rustls TLS, via `self_update`). The Installation page's
14+
Upgrade step now uses it.
15+
1116
- **`@opentf/esrun-types`** — hand-written TypeScript definitions for the
1217
`runtime:` standard modules (`runtime:process`, `runtime:path`, `runtime:fs`),
1318
in [`types/`](types/), for editor completion and type-checking. Ambient

0 commit comments

Comments
 (0)