Sha256: a38c4642e5cee43e5ea18365ca0c46c6ce60a5909af05045e6e16b8bcde21ff7
Contents?: true
Size: 902 Bytes
Versions: 1
Compression:
Stored size: 902 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|NAME]", "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.finish(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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cp8_cli-4.2.0 | exe/cp8 |