Sha256: 836fe36bf637d6e7ede27dd590d30f94673e016a7459a4624f6e8eade64f6f97

Contents?: true

Size: 962 Bytes

Versions: 12

Compression:

Stored size: 962 Bytes

Contents

require 'pry'

module CollinsShell; module Console; module Commands
  Versions = Pry::CommandSet.new do
    create_command "latest", "Latest version of collins shell" do
      group "Software"

      def options(opt)
        opt.banner <<-BANNER
          Usage: latest

          Display the latest version of collins shell
        BANNER
      end

      def process
        o = CollinsShell::Console.options
        render_output CollinsShell::Cli.new([], o).get_latest_version
      end

    end # create_command

    create_command "version", "Current version of collins shell" do
      group "Software"

      def options(opt)
        opt.banner <<-BANNER
          Usage: version

          Display the current version of collins shell
        BANNER
      end

      def process
        o = CollinsShell::Console.options
        render_output CollinsShell::Cli.new([], o).get_version
      end

    end # create_command

  end # CommandSet
end; end; end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
collins_shell-0.2.26 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.24 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.23 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.22 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.21 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.20 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.19 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.18 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.17 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.16 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.15 lib/collins_shell/console/commands/versions.rb
collins_shell-0.2.14 lib/collins_shell/console/commands/versions.rb