Sha256: 22e17c38323957daa148eaa42af491b5e0100ff0eb815452f521bb6649005369

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

require "thor"

module Neetob
  class CLI < Thor
    require_relative "cli/heroku/commands"
    require_relative "cli/github/commands"
    require_relative "cli/users/commands"
    require_relative "cli/fetchorupdate_repos/execute"
    require_relative "cli/local/commands"
    require_relative "cli/code/commands"

    class_option :sandbox,
      {
        type: :boolean, default: false,
        desc: "All the commands in sandbox mode will run only on the \"neeto-dummy\" app."
      }

    def self.start(*)
      super
    end

    desc "heroku", "Interact with any resource in Heroku"
    subcommand "heroku", Heroku::Commands

    desc "github", "Interact with any resource in Github"
    subcommand "github", Github::Commands

    desc "users", "Interact with the contributors of neeto apps"
    subcommand "users", Users::Commands

    desc "local", "Interact with the local neeto repos"
    subcommand "local", Local::Commands

    desc "code", "Interact with code base of neeto products"
    subcommand "code", Code::Commands

    desc "make_repos_uptodate", "Uptodate all neeto repos"
    def make_repos_uptodate
      FetchorupdateRepos::Execute.new(options[:sandbox]).run
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
neetob-0.3.0 lib/neetob/cli.rb