Sha256: 0a5f87095302897788301ead29f33502fd289b2a5578fd765024d2bdfa6f2e72

Contents?: true

Size: 480 Bytes

Versions: 8

Compression:

Stored size: 480 Bytes

Contents

module Tc211::Termbase
  module Cli
    class Command < Thor
      desc "fetch CODE", "Fetch Relaton XML for Standard identifier CODE"
      option :type, aliases: :t, required: true, desc: "Type of standard to get bibliographic entry for"
      option :year, aliases: :y, type: :numeric, desc: "Year the standard was published"

      def fetch(code)
        Relaton::Cli.relaton
        say(fetch_document(code, options) || supported_type_message)
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tc211-termbase-0.2.8 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.2.7 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.2.6 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.2.5 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.2.4 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.2.3 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.2.1 lib/tc211/termbase/cli/command.rb
tc211-termbase-0.1.13 lib/tc211/termbase/cli/command.rb