I wrote a small application and used the define_version to display a literal string of the version. Since I built the app with crystal init app, there is already a module in version.cr that contains the version number. I tried this and it actually worked:
define_version "app #{App::VERSION}"
also:
define_version <<-VERSION
app #{App::VERSION}
Copyright ...
License ...
VERSION
Is this something you would consider including in the README? For me this means having only one place to bump versions.
I wrote a small application and used the define_version to display a literal string of the version. Since I built the app with crystal init app, there is already a module in version.cr that contains the version number. I tried this and it actually worked:
also:
Is this something you would consider including in the README? For me this means having only one place to bump versions.
Great shard. Thanks