lib/milestoner/cli/commands/build.rb in milestoner-17.6.0 vs lib/milestoner/cli/commands/build.rb in milestoner-17.9.0
- old
+ new
@@ -1,20 +1,17 @@
# frozen_string_literal: true
-require "refinements/pathname"
require "sod"
module Milestoner
module CLI
module Commands
# Handles the building of milestone output.
class Build < Sod::Command
include Import[:input, :logger, :kernel]
include Builders::Import[:ascii_doc, :markdown, :stream, :web]
- using Refinements::Pathname
-
handle "build"
description "Build milestone."
on Actions::Build::Label
@@ -23,12 +20,12 @@
on Actions::Build::Format
on Actions::Build::Root
# :reek:TooManyStatements
def call
- log_info "Building milestone..."
-
format = input.build_format
+
+ log_info "Building #{input.project_label} milestone (#{format})..."
case format
when "ascii_doc" then build_ascii_doc
when "markdown" then build_markdown
when "stream" then build_stream