Skip to content

Commit 45c70fb

Browse files
committed
Add support for '@ALL' version shortcut in thor commands
1 parent 0bf7155 commit 45c70fb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/tasks/docs.thor

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,13 @@ class DocsCLI < Thor
175175
private
176176

177177
def find_docs(names)
178-
names.map do |name|
178+
names.flat_map do |name|
179179
name, version = name.split(/@|~/)
180-
Docs.find(name, version)
180+
if version == 'all'
181+
Docs.find(name, false).versions
182+
else
183+
Docs.find(name, version)
184+
end
181185
end
182186
end
183187

0 commit comments

Comments
 (0)