Sha256: 686ec8a4c58850fdb42dd9c61cd3cfcfd0544274f9377fb543f07a666137f74b

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 Bytes

Contents

# frozen_string_literal: true

require "snowpack/version"
require "snowpack/cli/command"

module Snowpack
  module CLI
    module Standalone
      module Commands
        class Version < Command
          def call(*)
            out.puts "Snowpack #{Snowpack::VERSION}"
          end
        end

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/cli/standalone/commands/version.rb
snowpack-1.0.0.alpha6 lib/snowpack/cli/standalone/commands/version.rb
snowpack-1.0.0.alpha5 lib/snowpack/cli/standalone/commands/version.rb
snowpack-1.0.0.alpha4 lib/snowpack/cli/standalone/commands/version.rb
snowpack-1.0.0.alpha3 lib/snowpack/cli/standalone/commands/version.rb