Sha256: cbbbd6f001505f8230cbd57c5b173fbebb3eab3cac0b041fb18c1e4fc9fc1a93
Contents?: true
Size: 404 Bytes
Versions: 17
Compression:
Stored size: 404 Bytes
Contents
require 'structured_changelog' desc "Display Release Notes for One or Multiple Versions" task "changelog:notes", [:query, :path] do |_task, arguments| query = arguments.to_h.fetch(:query) { "current" } path = arguments.to_h.fetch(:path) { "CHANGELOG.md" } changelog = StructuredChangelog.new(path) releases = changelog.find_releases(query) puts releases.map(&:contents).join("\n\n") end
Version data entries
17 entries across 17 versions & 1 rubygems