144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
# File 'lib/ufo/command.rb', line 144
def alter_command_description(command)
return unless command
long_desc = if command.long_description
"#{command.description}\n\n#{command.long_description}"
else
command.description
end
unless website.empty?
full_command = [command.ancestor_name, command.name].compact.join('-')
url = "#{website}/reference/ufo-#{full_command}"
long_desc += "\n\nHelp also available at: #{url}"
end
command.long_description = long_desc
end
|