We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5bd50e commit 8d0c5b7Copy full SHA for 8d0c5b7
lib/solargraph/shell.rb
@@ -89,6 +89,16 @@ def clear
89
map 'clear-cache' => :clear
90
map 'clear-cores' => :clear
91
92
+ desc 'cache', 'Cache a gem', hide: true
93
+ # @return [void]
94
+ # @param gem [String]
95
+ # @param version [String, nil]
96
+ def cache gem, version = nil
97
+ spec = Gem::Specification.find_by_name(gem, version)
98
+ pins = GemPins.build(spec)
99
+ Cache.save('gems', "#{spec.name}-#{spec.version}.ser", pins)
100
+ end
101
+
102
desc 'uncache GEM [...GEM]', "Delete cached gem documentation"
103
# @return [void]
104
def uncache *gems
0 commit comments