CLI to do things fast
Running the command without arguments prints the built-in help:
flow-ts 0.1
CLI to do things fast
Commands:
clearGhNotifs Clear GitHub notifications (placeholder)
sendEmail Send email through Resend using Markdown templates (default: ~/.config/friendik/email/send.md)
clone Clone a repo into ~/gh/<namespace>/<repo>
Flags:
--version, -v Show CLI version
--help Show command-specific help
Examples:
flow-ts sendEmail --help
flow-ts clone [email protected]:user/repo.git
flow-ts clearGhNotifs– placeholder that currently just prints a stub message.flow-ts sendEmail– renders a Markdown template and sends it through the Resend API.flow-ts clone <repo>– clones a Git repository into~/gh/<namespace>/<repo>after validating the path.
flow-ts sendEmail expects RESEND_API_KEY to be present in your environment. It resolves the email template from (in order):
--content/--fileCLI flagRESEND_CONTENT~/.config/friendik/email/send.md
The template is Markdown with YAML front matter. A minimal example:
---
from: [email protected]
to:
- [email protected]
subject: Launch Update
---
# Launch Update
Body content in Markdown...
You can supply cc, bcc, and replyTo fields in the front matter or via RESEND_CC, RESEND_BCC, and RESEND_REPLY_TO. CLI flags (--from, --to, --subject) and their corresponding environment variables override the template values when present.