Skip to content

Conversation

@subtleGradient
Copy link
Member

This pull request updates the project to version 0.2.0 and introduces improved command-line argument handling for the ansilust executable, including new --help and --version options. It also ensures that the version number is consistently passed from the build system into the executable and updates all related package and dependency versions.

Versioning and Packaging Updates:

  • Bumped the project version to 0.2.0 in build.zig, build.zig.zon, and packages/ansilust/package.json to reflect the new release. [1] [2] [3]
  • Updated all optional native binary dependencies in package.json to version 0.2.0 for consistency with the main package version.

Build System Improvements:

  • Modified build.zig to define the version as a build option and pass it into the executable via a generated build_options module. [1] [2]

Executable Enhancements:

  • Updated src/main.zig to import the new build_options module, making the version string available at runtime.
  • Added --help and --version command-line options to the ansilust executable, with corresponding output functions and improved error messages for unknown options or missing files.

Copilot AI review requested due to automatic review settings November 29, 2025 20:54
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the project to version 0.2.0 and introduces command-line argument handling for the ansilust executable, including new --help and --version options with proper integration from the build system.

Key Changes:

  • Version bumped from 0.0.0/0.1.0 to 0.2.0 across build system and package files
  • Added --help/-h and --version/-V CLI flags with formatted output functions
  • Integrated build options module to pass version string from build system to runtime

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
build.zig Defines version constant and creates build_options module to pass version to executable
build.zig.zon Updates project version to 0.2.0 for consistency
packages/ansilust/package.json Updates main package and all optional platform-specific dependencies to 0.2.0
src/main.zig Implements CLI argument parsing with --help and --version flags, adds printVersion() and printHelp() functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Addresses PR review feedback:
- Collect file paths first, then process after checking --help/--version
- This allows 'ansilust file.ans --version' to show version instead of failing
- Use consistent stderr_file.writeAll instead of mixing with std.debug.print
@subtleGradient
Copy link
Member Author

Addressed the argument parsing order and stderr consistency issues in commit d6ebcee.

Regarding test coverage for CLI flags: acknowledged as a valid point for future improvement. The CLI argument parsing is straightforward and manually verified - adding comprehensive tests is lower priority for this release but noted for follow-up.

@subtleGradient subtleGradient merged commit 470f9db into main Nov 29, 2025
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