lib/makit/show.rb in makit-0.0.39 vs lib/makit/show.rb in makit-0.0.40
- old
+ new
@@ -78,9 +78,31 @@
end
def success(text)
puts " ".colorize(:grey) + "#{text}".colorize(:green)
end
+
+ def version(path)
+ puts " #{Makit::Version.get_version_from_file(path)}".colorize(:green) + " found in #{path}".colorize(:grey)
+ #if(!File.exist?(path))
+ # puts "file #{path}does not exist"
+ # return
+ #end
+
+ #extension = File.extname(path)
+ #switch = extension.downcase
+ #case switch
+ #if extension == ".csproj"
+ # version = Makit::Version.detect_from_file(path, /<Version>([-\w\d.]+)</)
+ # if version.empty?
+ # puts "no version found in #{path}"
+ # else
+ # puts " #{version}".colorize(:green) + " found in #{path}".colorize(:grey)
+ # end
+ # else
+ ## puts "unrecognized file type"
+ #end
+ end
end
end
-#Code42-#{VERSION}-win10-x64 ".colorize(:grey) + "#{Makit::Humanize.get_humanized_size(Makit::Directory.get_size("artifacts/Code42-0.0.0-win10-x64"))}".colorize(:cyan)
+