How to specify a release version? #1544
-
Hi we have a new project at https://github.com/homihq/homi-cli Using jbang, how can a user specify that they want a particular version like 1.0 or 2.0 if we start publishing releases on GitHub? For example, I'm a Windows user, with a fresh install or virtual environment and want to tell my users to just do something like this:
Ya know, like NPM easy? I see the full syntax is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You could definitely use You can use Jbang's catalog and aliases for something like Another option could indeed be to use GitHub tags and use A final option is to use the Maven syntax, like the first option, but use JitPack, like this: Edit: fixed mistake in command: |
Beta Was this translation helpful? Give feedback.
You could definitely use
jbang com.homi:homi-cli:1.1.0
if that was published on Maven Central. That's perhaps the easiest from the PoV of Jbang usage but getting things published on Maven Central isn't that trivial.You can use Jbang's catalog and aliases for something like
jbang homi@homi-cli
but it doesn't have a versioning system. You could perhaps make aliases with the version in the name, eg:jbang homi-1-1-0@homi-cli
.Another option could indeed be to use GitHub tags and use
jbang homi@homi-cli/jbang-catalog-or-some-other-name/1.1.0
, but the name is getting a bit long perhaps and it might not be so nice if you have different projects in that catalog all following different versionings.