Sha256: ca8917de80b33c856ecd76aba817571a9d579a322f12c74c986ecfa805ed2944
Contents?: true
Size: 735 Bytes
Versions: 4
Compression:
Stored size: 735 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 private def main Main.new end end end Cp8Cli::App.start
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cp8_cli-4.1.3 | exe/cp8 |
cp8_cli-4.1.2 | exe/cp8 |
cp8_cli-4.1.1 | exe/cp8 |
cp8_cli-4.1.0 | exe/cp8 |