diff --git a/.github/assets/demo.gif b/.github/assets/demo.gif new file mode 100644 index 0000000..c79e873 Binary files /dev/null and b/.github/assets/demo.gif differ diff --git a/CHANGELOG.md b/CHANGELOG.md index 6bbab95..0438973 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ User-visible and operationally material changes. Release notes with every commit ## [Unreleased] +## [0.3.4] - 2026-11-24 +### Added +- Demo GIF in the README, with its recording script in `docs/demo.tape`. + ## [0.3.3] - 2026-11-24 ### Changed - New logo and header in light and dark variants for the README and the project site. @@ -33,7 +37,8 @@ First published release (Node.js; versions before it were never tagged). - `migadu catchall`, `migadu spam` and `migadu bcc`, driven through the admin panel's forms. - Releases are tagged, built and published automatically when the version changes on `main`. -[Unreleased]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.3...HEAD +[Unreleased]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.4...HEAD +[0.3.4]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.3...v0.3.4 [0.3.3]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.2...v0.3.3 [0.3.2]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.1...v0.3.2 [0.3.1]: https://github.com/ifthenelse/migadu-cli/compare/v0.3.0...v0.3.1 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 107c1df..7e4f666 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,6 +8,9 @@ Applies to humans and coding agents alike. 3. Run `scripts/verify` locally (needs [Rust](https://rustup.rs) 1.85 or newer). CI runs the same command on Linux, macOS and Windows and is the authoritative gate. 4. Open a pull request: shared and production code enters only through a PR with required checks. +## Demo GIF +The README GIF is recorded from `docs/demo.steps` and `docs/demo.tape` with [VHS](https://github.com/charmbracelet/vhs): build the release binary, put it on your `PATH` (`export PATH="$PWD/target/release:$PATH"`), then run `vhs docs/demo.tape`. It only uses commands that need no account (a fake key gets a real 401 from Migadu). Re-record it when messages or output change. + ## Commit convention Conventional Commits, see `.gitmessage.txt`: `type(scope)!: description`. Enable the template once: `git config commit.template .gitmessage.txt`. diff --git a/Cargo.lock b/Cargo.lock index d12938c..abba98a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -143,7 +143,7 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "migadu-cli" -version = "0.3.3" +version = "0.3.4" dependencies = [ "serde_json", "ureq", diff --git a/Cargo.toml b/Cargo.toml index 2cacd0d..92bc665 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "migadu-cli" -version = "0.3.3" +version = "0.3.4" edition = "2021" rust-version = "1.85" description = "Cross-platform CLI for the Migadu email hosting API, with password-manager credential lookup." diff --git a/README.md b/README.md index ce03d2a..84860fc 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,10 @@ The maintained command line for [Migadu](https://www.migadu.com) email hosting: Migadu's admin panel is great for one mailbox and slow for forty. `migadu` wraps the Migadu REST API so domains, mailboxes, aliases, identities, forwardings and rewrites are scriptable, and the API key never has to sit in a dotfile. It ships as one small native binary (about 1.4 MB, written in Rust) and is not an official Migadu product. +

+ Terminal recording: migadu reports missing credentials, rejects an unsupported password-manager reference, refuses to delete without --yes, and shows Migadu's 401 for a fake key +

+ ## Features - **Whole API surface** — domains (records, diagnostics, usage, activate), mailboxes, aliases, rewrites, identities and forwardings, plus `migadu api ` for any other endpoint. diff --git a/docs/demo.steps b/docs/demo.steps new file mode 100644 index 0000000..04f6657 --- /dev/null +++ b/docs/demo.steps @@ -0,0 +1,16 @@ +# hide +export HOME="$(mktemp -d)" +export MIGADU_EMAIL=me@example.org MIGADU_DOMAIN=example.org +export PS1='$ ' +clear +# show +# type-speed 25ms +migadu domains list +# sleep 1200ms +MIGADU_API_KEY_REF=oops migadu domains list +# sleep 1200ms +export MIGADU_API_KEY=not-a-real-key +migadu mailboxes delete hello +# sleep 1200ms +migadu domains list +# sleep 2s diff --git a/docs/demo.tape b/docs/demo.tape index 0535f77..c70deb0 100644 --- a/docs/demo.tape +++ b/docs/demo.tape @@ -1,29 +1,78 @@ -# Demo recording script for the README GIF, for VHS (https://github.com/charmbracelet/vhs). -# Record against a throwaway domain and a test mailbox, then delete them: -# vhs docs/demo.tape # writes .github/assets/demo.gif -# Needs MIGADU_EMAIL set and MIGADU_API_KEY_REF pointing at your password manager. +# Record: vhs docs/demo.tape +# Edit the steps below and re-run vhs after the tool changes. + Output .github/assets/demo.gif +Require migadu + +Set Shell "bash" Set FontSize 18 -Set Width 1100 -Set Height 600 -Set Theme "Dracula" -Set TypingSpeed 40ms +Set Width 1300 +Set Height 420 +Set Padding 20 +Set Framerate 24 +Set TypingSpeed 25ms +Set Theme "Catppuccin Mocha" +Set WaitPattern /\$$/ + +Hide +Type "export PS1='$ '" +Enter +Type "clear" +Enter +Sleep 200ms +Show -Type "# New project, new mailboxes: done in the terminal" +Hide +Type 'export HOME="$(mktemp -d)"' +Enter +Wait +Type "export MIGADU_EMAIL=me@example.org MIGADU_DOMAIN=example.org" Enter -Sleep 800ms -Type "export MIGADU_API_KEY_REF='op://Private/Migadu/credential' # the key never touches a file" +Wait +Type "export PS1='$ '" Enter +Wait +Type "clear" +Enter +Wait +Type "clear" +Enter +Sleep 200ms +Show + +Type@25ms "migadu domains list" +Sleep 400ms +Enter +Wait Sleep 1s -Type "migadu mailboxes create -d example.org -f local_part=hello -f name=Hello -f password_method=invitation -f password_recovery_email=me@example.net" + +Sleep 1200ms +Type@25ms "MIGADU_API_KEY_REF=oops migadu domains list" +Sleep 400ms Enter -Sleep 3s -Type "migadu aliases create -d example.org -f local_part=support -f destinations=hello@example.org" +Wait +Sleep 1s + +Sleep 1200ms +Type@25ms "export MIGADU_API_KEY=not-a-real-key" +Sleep 400ms Enter -Sleep 3s -Type "migadu mailboxes list -d example.org -o table" +Wait +Sleep 1s + +Type@25ms "migadu mailboxes delete hello" +Sleep 400ms Enter -Sleep 3s -Type "migadu mailboxes delete -d example.org hello --yes" +Wait +Sleep 1s + +Sleep 1200ms +Type@25ms "migadu domains list" +Sleep 400ms Enter +Wait +Sleep 1s + +Sleep 2s + Sleep 3s