Sha256: 333cce7edd082faa61226ca44ae2d742b4f1cb042056c64e8992fd0e52ab7604
Contents?: true
Size: 903 Bytes
Versions: 2
Compression:
Stored size: 903 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]", "Assign self to story and create new branch" def start(name = nil) main.start(name) end desc "submit", "Pushes branch to GitHub and opens a PR" method_option :wip, desc: "Flag PR as WIP", type: :boolean def submit main.submit(options.to_h.symbolize_keys) end desc "open", "Open current story in browser" def open main.open end desc "ci", "Open CI page for current branch" def ci main.ci end desc "suggest", "Creates a random branch from current commit, pushes it, 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp8_cli-6.0.0 | exe/cp8 |
cp8_cli-5.0.0 | exe/cp8 |