Sha256: fcf0299b5406d23456c8ec84ae3a548adb17b2f5235543628f88f0f65da35c22

Contents?: true

Size: 744 Bytes

Versions: 22

Compression:

Stored size: 744 Bytes

Contents

# encoding: UTF-8

require "thor"

require_relative 'doi'
require_relative 'media'
require_relative 'metadata'

module Cirneco
  class CLI < Thor
    include Cirneco::Base
    include Cirneco::Api
    include Cirneco::Utils

    # load ENV variables from .env file if it exists
    env_file = File.expand_path("../../.env", __FILE__)
    if File.exist?(env_file)
      require 'dotenv'
      Dotenv.load! env_file
    end

    def self.exit_on_failure?
      true
    end

    desc "doi SUBCOMMAND", "doi commands"
    subcommand "doi", Cirneco::Doi

    desc "metadata SUBCOMMAND", "metadata commands"
    subcommand "metadata", Cirneco::Metadata

    desc "media SUBCOMMAND", "media commands"
    subcommand "media", Cirneco::Media
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cirneco-0.6.11 lib/cirneco/cli.rb
cirneco-0.6.10 lib/cirneco/cli.rb
cirneco-0.6.9 lib/cirneco/cli.rb
cirneco-0.6.8 lib/cirneco/cli.rb
cirneco-0.6.7 lib/cirneco/cli.rb
cirneco-0.6.6 lib/cirneco/cli.rb
cirneco-0.6.4 lib/cirneco/cli.rb
cirneco-0.6.3 lib/cirneco/cli.rb
cirneco-0.6.2 lib/cirneco/cli.rb
cirneco-0.6.1 lib/cirneco/cli.rb
cirneco-0.6 lib/cirneco/cli.rb
cirneco-0.5.8 lib/cirneco/cli.rb
cirneco-0.5.7 lib/cirneco/cli.rb
cirneco-0.5.6 lib/cirneco/cli.rb
cirneco-0.5.5 lib/cirneco/cli.rb
cirneco-0.5.4 lib/cirneco/cli.rb
cirneco-0.5.3 lib/cirneco/cli.rb
cirneco-0.4.9 lib/cirneco/cli.rb
cirneco-0.4.8 lib/cirneco/cli.rb
cirneco-0.4.7 lib/cirneco/cli.rb