Sha256: b466725f5c91514e6fb06ccd0d6fe9875d5e077aa50cde883f1046ad659a0a76

Contents?: true

Size: 365 Bytes

Versions: 10

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

require "sod"

module Rubysmith
  module CLI
    module Actions
      # Stores project (build) name.
      class Name < Sod::Action
        include Import[:settings]

        description "Set project name."

        on %w[-n --name], argument: "NAME"

        def call(name) = settings.project_name = name
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.8.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.7.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.6.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.5.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.4.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.3.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.2.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.1.0 lib/rubysmith/cli/actions/name.rb
rubysmith-7.0.0 lib/rubysmith/cli/actions/name.rb