Skip to content

Reject extra args for zero-arg moshscript commands - #8

Merged
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/validate-repeat-count
Jul 12, 2026
Merged

Reject extra args for zero-arg moshscript commands#8
ralyodio merged 1 commit into
moshcoder:mainfrom
aiirvizionz:clientkit/validate-repeat-count

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • Reject unexpected arguments passed to zero-argument built-ins: code(), mosh(), repeat(), and stop().
  • Keep notify() accepting message arguments and preserve existing command output.
  • Add node:test coverage for the new validation.

Tests

  • node --test (8 passed)
  • CLI smoke: repeat("oops"); through moshcode run - --dry-run now fails with moshscript: repeat() does not take arguments

@ralyodio
ralyodio merged commit b6c6463 into moshcoder:main Jul 12, 2026
1 check passed
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.

2 participants