We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 101e626 commit 8d65bcbCopy full SHA for 8d65bcb
1 file changed
src/commands/info.cr
@@ -14,11 +14,15 @@ module Geode::Commands
14
15
shard = Shard.load_local
16
name = arguments.get("shard").as_s
17
- unless shard.dependencies.has_key?(name) || shard.development.has_key?(name)
18
- if Shard.exists? name
19
- fatal "Shard '#{name}' is installed but not listed as a dependency"
20
- else
21
- fatal "Shard '#{name}' not installed"
+ if name == "."
+ name = "shard.yml"
+ else
+ unless shard.dependencies.has_key?(name) || shard.development.has_key?(name)
+ if Shard.exists? name
22
+ fatal "Shard '#{name}' is installed but not listed as a dependency"
23
24
+ fatal "Shard '#{name}' not installed"
25
+ end
26
end
27
28
@@ -62,8 +66,6 @@ module Geode::Commands
62
66
63
67
stdout << '\n'
64
68
65
-
- stdout << '\n'
69
70
{% end %}
71
0 commit comments