File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,3 @@ shards:
1616 git: https://github.com/samueleaton/sentry.git
1717 version: 0.3.2+git.commit.e448ce83486f99ef016c311e10ec0cac805cded3
1818
19- version_from_shard:
20- git: https://github.com/hugopl/version_from_shard.git
21- version: 1.2.5
22-
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ targets:
1313dependencies :
1414 lsp :
1515 github : elbywan/crystal-lsp
16- version_from_shard :
17- github : hugopl/version_from_shard
1816 priority-queue :
1917 github : spider-gazelle/priority-queue
2018
Original file line number Diff line number Diff line change 11require " ./crystalline/requires"
22require " ./crystalline/*"
33
4+ if ARGV .includes?(" --version" )
5+ puts(Crystalline ::VERSION )
6+ exit
7+ end
8+
49Crystalline .init
Original file line number Diff line number Diff line change @@ -2,11 +2,10 @@ require "log"
22require " lsp/server"
33require " ./ext/*"
44require " ./*"
5- require " version_from_shard"
65
76module Crystalline
8- VersionFromShard .declare( __DIR__)
9-
7+ VERSION = {{ ( ` shards version #{ __DIR__ } ` .strip + " + " +
8+ system( " git rev-parse --short HEAD || echo unknown " ).stringify).stringify.strip }}
109 # Supported server capabilities.
1110 SERVER_CAPABILITIES = LSP ::ServerCapabilities .new(
1211 text_document_sync: LSP ::TextDocumentSyncKind ::Incremental ,
You can’t perform that action at this time.
0 commit comments