Sha256: 197100e63c317b52197821b99a4855ad670286ca1dd114f7147200f3548beccd

Contents?: true

Size: 660 Bytes

Versions: 14

Compression:

Stored size: 660 Bytes

Contents

module LicenseFinder
  module CLI
    class ProjectName < Base
      extend Subcommand
      include MakesDecisions

      desc 'show', 'Show the project name'
      def show
        say 'Project Name:', :blue
        say decisions.project_name
      end

      auditable
      desc 'add NAME', 'Set the project name'
      def add(name)
        modifying { decisions.name_project(name, txn) }

        say "Set the project name to #{name}", :green
      end

      auditable
      desc 'remove', 'Remove the project name'
      def remove
        modifying { decisions.unname_project(txn) }

        say 'Removed the project name'
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
license_finder-5.4.1 lib/license_finder/cli/project_name.rb
license_finder-5.4.0 lib/license_finder/cli/project_name.rb
license_finder-5.3.0 lib/license_finder/cli/project_name.rb
license_finder-5.2.3 lib/license_finder/cli/project_name.rb
license_finder-5.2.1 lib/license_finder/cli/project_name.rb
license_finder-5.2.0 lib/license_finder/cli/project_name.rb
license_finder-5.1.1 lib/license_finder/cli/project_name.rb
license_finder-5.1.0 lib/license_finder/cli/project_name.rb
license_finder-5.0.3 lib/license_finder/cli/project_name.rb
license_finder-5.0.2 lib/license_finder/cli/project_name.rb
license_finder-5.0.0 lib/license_finder/cli/project_name.rb
license_finder-4.0.2 lib/license_finder/cli/project_name.rb
license_finder-4.0.1 lib/license_finder/cli/project_name.rb
license_finder-3.1.1 lib/license_finder/cli/project_name.rb