Skip to content

Comments

feat: cli tool#26

Merged
Zubs merged 1 commit intomasterfrom
cli
Oct 11, 2025
Merged

feat: cli tool#26
Zubs merged 1 commit intomasterfrom
cli

Conversation

@Zubs
Copy link
Owner

@Zubs Zubs commented Oct 11, 2025

This pull request introduces a CLI interface for converting between numbers and Roman numerals, improves validation logic for Roman numeral inputs, and updates tests to reflect stricter input requirements. The most important changes are summarized below:

CLI Feature Addition

  • Added a new CLI tool (cli.js and src/cli.ts) that allows users to convert between numbers and Roman numerals from the command line. The CLI is registered as the toroman command in package.json. [1] [2] [3]

Input Validation Improvements

  • Updated the isRoman function in both JavaScript and TypeScript to reject inputs that are numbers or numeric strings, ensuring only valid Roman numeral strings are accepted. [1] [2]

Test Enhancements

  • Expanded test coverage to verify that isRoman throws an error when passed a number or a numeric string, ensuring stricter input validation. [1] [2]

@Zubs Zubs merged commit d681ecd into master Oct 11, 2025
2 of 3 checks passed
@Zubs Zubs deleted the cli branch October 11, 2025 16:49
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.

1 participant