Skip to content

Feat modify sui mono no interactive#1985

Open
emiliovillu wants to merge 2 commits intomasterfrom
feat-modify-sui-mono-no-interactive
Open

Feat modify sui mono no interactive#1985
emiliovillu wants to merge 2 commits intomasterfrom
feat-modify-sui-mono-no-interactive

Conversation

@emiliovillu
Copy link
Copy Markdown
Contributor

@emiliovillu emiliovillu commented Apr 29, 2026

SUI Mono

Description


Title: feat(packages/sui-mono): add non-interactive mode to sui-mono commit


Feature Description

Add a --no-interactive flag to sui-mono commit that allows passing all
commit parameters via CLI arguments, enabling programmatic use from scripts,
skills, and CI pipelines.

Motivation

sui-mono commit was fully interactive via enquirer, making it impossible to
use programmatically. Skills like /sui-commit and automated workflows need
to create semantic commits without user prompts.

Implementation Details

  • Added commander CLI parsing to bin/sui-mono-commit.js with flags:
    --no-interactive, -t/--type, -s/--scope, -m/--subject, -b/--body,
    --breaking, --footer
  • Extracted commit execution logic into a standalone executeCommit(answers,
    extraArgs) function in src/prompter-manager.js and exported it as a named
    export
  • When --no-interactive is set, validates required fields (type, scope,
    subject) and calls executeCommit directly, bypassing the enquirer flow
  • Interactive mode is unchanged

Usage

Non-interactive

sui-mono commit --no-interactive \
  --type feat \
  --scope packages/sui-mono \
  --subject "add new feature" \
  --body "optional longer description" \
  --breaking "optional breaking change" \
  --footer "#123"

Testing

  • Unit tests added — build-commit pure function and non-interactive CLI
    validation
  • Manual testing completed
  • Interactive mode regression tested

Breaking Changes

None — interactive mode is fully preserved.

Related Issue

Example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants