lib/rubysmith/cli/actions/name.rb in rubysmith-5.1.0 vs lib/rubysmith/cli/actions/name.rb in rubysmith-5.2.0
- old
+ new
@@ -1,23 +1,20 @@
# frozen_string_literal: true
-require "refinements/structs"
require "sod"
module Rubysmith
module CLI
module Actions
# Stores project (build) name.
class Name < Sod::Action
include Import[:input]
- using ::Refinements::Structs
-
description "Set project name."
on %w[-n --name], argument: "NAME"
- def call(name) = input.merge!(project_name: name)
+ def call(name) = input.project_name = name
end
end
end
end