feat: extract version number from shard+git history
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Glenn Y. Rolland 2023-11-18 23:55:13 +01:00
parent 3f22971fa8
commit 46829bcc69
4 changed files with 16 additions and 3 deletions

View file

@ -8,3 +8,7 @@ shards:
git: https://github.com/sztheory/shellwords-crystal.git git: https://github.com/sztheory/shellwords-crystal.git
version: 0.1.0 version: 0.1.0
version_from_shard:
git: https://github.com/hugopl/version_from_shard.git
version: 1.2.5

View file

@ -5,7 +5,7 @@
# Copyright © 2023 Glenn Y. Rolland <glenux@glenux.net> # Copyright © 2023 Glenn Y. Rolland <glenux@glenux.net>
name: Minimalist FUSE Manager name: Minimalist FUSE Manager
version: 0.1.0 version: 0.1.10
targets: targets:
mfm: mfm:
@ -22,6 +22,8 @@ dependencies:
github: straight-shoota/crinja github: straight-shoota/crinja
shellwords: shellwords:
github: szTheory/shellwords-crystal github: szTheory/shellwords-crystal
version_from_shard:
github: hugopl/version_from_shard
# dependencies: # dependencies:
# pg: # pg:

View file

@ -6,10 +6,9 @@
require "option_parser" require "option_parser"
require "./config" require "./config"
require "./fzf" require "./fzf"
require "./version"
module GX module GX
VERSION="v0.1.9"
class Cli class Cli
Log = ::Log.for("cli") Log = ::Log.for("cli")

8
src/version.cr Normal file
View file

@ -0,0 +1,8 @@
require "version_from_shard"
module GX
VersionFromShard.declare
end