Sha256: d7749e27644fc852c8e66f318dadf02fea6680ceccc087959938ec332fe7146d

Contents?: true

Size: 376 Bytes

Versions: 18

Compression:

Stored size: 376 Bytes

Contents

module Hanami
  class CLI
    module Commands
      # @since 1.1.0
      # @api private
      class Version < Command
        desc "Print Hanami version"

        # @since 1.1.0
        # @api private
        def call(*)
          puts "v#{Hanami::VERSION}"
        end
      end
    end

    register "version", Commands::Version, aliases: ["v", "-v", "--version"]
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
hanami-1.3.5 lib/hanami/cli/commands/version.rb
hanami-1.3.4 lib/hanami/cli/commands/version.rb
hanami-1.3.3 lib/hanami/cli/commands/version.rb
hanami-1.3.2 lib/hanami/cli/commands/version.rb
hanami-1.3.1 lib/hanami/cli/commands/version.rb
hanami-1.3.0 lib/hanami/cli/commands/version.rb
hanami-1.3.0.beta1 lib/hanami/cli/commands/version.rb
hanami-1.2.0 lib/hanami/cli/commands/version.rb
hanami-1.2.0.rc2 lib/hanami/cli/commands/version.rb
hanami-1.2.0.rc1 lib/hanami/cli/commands/version.rb
hanami-1.2.0.beta2 lib/hanami/cli/commands/version.rb
hanami-1.2.0.beta1 lib/hanami/cli/commands/version.rb
hanami-1.1.1 lib/hanami/cli/commands/version.rb
hanami-1.1.0 lib/hanami/cli/commands/version.rb
hanami-1.1.0.rc1 lib/hanami/cli/commands/version.rb
hanami-1.1.0.beta3 lib/hanami/cli/commands/version.rb
hanami-1.1.0.beta2 lib/hanami/cli/commands/version.rb
hanami-1.1.0.beta1 lib/hanami/cli/commands/version.rb