Sha256: e176bc211dc44e8aee37bb3efdf89aa4d56445e4dc0864c046114500fbd85a91

Contents?: true

Size: 682 Bytes

Versions: 11

Compression:

Stored size: 682 Bytes

Contents

require "cp8_cli/version"
require "cp8_cli/global_config"
require "cp8_cli/commands/ci"
require "cp8_cli/commands/open"
require "cp8_cli/commands/start"
require "cp8_cli/commands/submit"
require "cp8_cli/commands/suggest"

module Cp8Cli
  class Main
    def initialize(global_config = GlobalConfig.new)
      Github::Api.configure(token: global_config.github_token)
    end

    def start(name)
      Commands::Start.new(name).run
    end

    def open
      Commands::Open.new.run
    end

    def submit(options = {})
      Commands::Submit.new(options).run
    end

    def ci
      Commands::Ci.new.run
    end

    def suggest
      Commands::Suggest.new.run
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cp8_cli-9.1.1 lib/cp8_cli/main.rb
cp8_cli-9.1.0 lib/cp8_cli/main.rb
cp8_cli-9.0.3 lib/cp8_cli/main.rb
cp8_cli-9.0.2 lib/cp8_cli/main.rb
cp8_cli-9.0.1 lib/cp8_cli/main.rb
cp8_cli-9.0.0 lib/cp8_cli/main.rb
cp8_cli-8.2.1 lib/cp8_cli/main.rb
cp8_cli-8.2.0 lib/cp8_cli/main.rb
cp8_cli-8.1.0 lib/cp8_cli/main.rb
cp8_cli-8.0.1 lib/cp8_cli/main.rb
cp8_cli-8.0.0 lib/cp8_cli/main.rb