Skip to content

Conversation

@ingydotnet
Copy link
Contributor

Started by adding glj -e ... support. Much like bb -e ... or cj -M -e ....

Added *glojure-version* variable support.
This supports glj --version.

Added --help and -h for good measure.

CLI tests for all.

Had to adjust Makefile to build bin/.../glj binary to test stdout of CLI commands.

Added build and clean Makefile targets to be complete.

Copy link
Contributor

@jfhamlin jfhamlin left a comment

Choose a reason for hiding this comment

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

great start on a more featureful CLI!

Comment on lines +19 to +26
(defn run-cli-cmd [& args]
(let [bytes-to-string (fn [bytes]
(if (nil? bytes)
""
(apply str (map char (seq bytes)))))
cmd (apply os$exec.Command args)
[output err] (.CombinedOutput cmd)]
[(bytes-to-string output) (bytes-to-string err)]))
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

@jfhamlin jfhamlin merged commit a2bebb9 into glojurelang:main Aug 11, 2025
1 check passed
@ingydotnet ingydotnet deleted the command-line-options branch August 12, 2025 00:11
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