Sha256: 30e5b810152daa4fc28394bd6abf0a19178610b23f6c635451e10dfffcec42e4

Contents?: true

Size: 856 Bytes

Versions: 9

Compression:

Stored size: 856 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require "thor"
require "cp8_cli"

module Cp8Cli
  class App < Thor
    desc "start [URL|TITLE]", "Picks up existing issue/creates new ad hoc story and checks out branch"
    def start(name = nil)
      main.start(name)
    end

    desc "submit", "Pushes branch to GitHub and opens PR"
    def submit
      main.submit
    end

    desc "open", "Open current associated PR in browser"
    def open
      main.open
    end

    desc "ci", "Open CI page for current branch"
    def ci
      main.ci
    end

    desc "suggest", "Creates a suggestion branch from new commits, pushes it, opens URL and resets `master` back to `origin/master`."
    def suggest
      main.suggest
    end

    private

      def main
        Main.new
      end
  end
end

Cp8Cli::App.start

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cp8_cli-9.0.3 exe/cp8
cp8_cli-9.0.2 exe/cp8
cp8_cli-9.0.1 exe/cp8
cp8_cli-9.0.0 exe/cp8
cp8_cli-8.2.1 exe/cp8
cp8_cli-8.2.0 exe/cp8
cp8_cli-8.1.0 exe/cp8
cp8_cli-8.0.1 exe/cp8
cp8_cli-8.0.0 exe/cp8