twig save¶
Commit with a guided TUI wizard, or pass flags directly for scripting.
Usage¶
Description¶
With no flags, launches the interactive TUI wizard:
- Type picker — choose a commit type (feat, fix, chore, test, docs, plus any extras you've configured)
- Scope picker — choose or type a scope (pinned scopes at top, then history)
- Ticket — auto-populated from branch name if a Jira ticket is detected, otherwise optional input
- Message — type the commit message body
The assembled commit message follows conventional commits format:
After the wizard completes, twig runs git add . (if auto_add = true) and git commit, then git push (if auto_push = true).
With flags, the wizard is skipped entirely:
Flags¶
| Flag | Description |
|---|---|
--type <label> |
Commit type. Must match a default or configured type label. |
--scope <scope> |
Commit scope. Any string. Saved to history if new. |
--message <msg> |
Commit message. Skips the message input step. |
--ticket <id> |
Jira ticket ID (e.g. SHIP-2416). Overrides auto-detected ticket. |
--no-ticket |
Omit ticket from commit message even if one is detected. |
--no-push |
Commit without pushing. Overrides save.auto_push. |
--no-add |
Skip git add .. Overrides save.auto_add. |
--no-tui |
Skip the wizard entirely and use save.default_message. |
Examples¶
Commit message format¶
All parts except <message> are optional depending on what's provided: