Sha256: a7eab93c0ab8c4e0dd26c1f851c5c142090793c6c9ab8e71b3e43f82e404ec1c

Contents?: true

Size: 268 Bytes

Versions: 1

Compression:

Stored size: 268 Bytes

Contents

require 'thor'

module Qiitakun
  class CLI < Thor
    desc "list QIITA_TOKEN", "LIST items"
    option :qiita_token

    def list
      qiita = Qiitakun::Qiita.new(options[:qiita_token])

      qiita.items.each do |item|
        puts item
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
qiitakun-0.1.0 lib/qiitakun/cli.rb