Sha256: cbff7d8078159364e7a9c01ca8b9ba3011268cf18f503e2c1f9820d68a531c42

Contents?: true

Size: 1.57 KB

Versions: 7

Compression:

Stored size: 1.57 KB

Contents

require 'thor'
require 'datahen'
require 'datahen/cli/scraper_var'
require 'datahen/cli/scraper_exporter'
require 'datahen/cli/scraper_export'
require 'datahen/cli/scraper_job_var'
require 'datahen/cli/scraper_job'
require 'datahen/cli/scraper_finisher'
require 'datahen/cli/global_page'
require 'datahen/cli/scraper_page'
require 'datahen/cli/job_output'
require 'datahen/cli/job'
require 'datahen/cli/scraper_deployment'
require 'datahen/cli/scraper'
require 'datahen/cli/parser'
require 'datahen/cli/seeder'
require 'datahen/cli/finisher'
require 'datahen/cli/env_var'
require 'datahen/cli/account_deploy_key'
require 'datahen/cli/account'

module Datahen
  class CLI < Thor
    desc "scraper SUBCOMMAND ...ARGS", "manage scrapers"
    subcommand "scraper", Scraper

    desc "job SUBCOMMAND ...ARGS", "manage scrapers jobs"
    subcommand "job", Job

    desc "globalpage SUBCOMMAND ...ARGS", "interacts with global page"
    subcommand "globalpage", GlobalPage

    desc "parser SUBCOMMAND ...ARGS", "for parsing related activities"
    subcommand "parser", Parser

    desc "seeder SUBCOMMAND ...ARGS", "for seeding related activities"
    subcommand "seeder", Seeder

    desc "seeder SUBCOMMAND ...ARGS", "for seeding related activities"
    subcommand "finisher", Finisher

    desc "var SUBCOMMAND ...ARGS", "for environment variable related activities"
    subcommand "var", EnvVar

    desc "account SUBCOMMAND ...ARGS", "for account related activities"
    subcommand "account", Account

    desc "version", "Shows the gem version"
    def version()
      puts "#{VERSION}"
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datahen-1.4.0 lib/datahen/cli.rb
datahen-1.3.2 lib/datahen/cli.rb
datahen-1.3.1 lib/datahen/cli.rb
datahen-1.3.0 lib/datahen/cli.rb
datahen-1.2.3 lib/datahen/cli.rb
datahen-1.2.2 lib/datahen/cli.rb
datahen-1.2.1 lib/datahen/cli.rb