Sha256: 6fb9bae7c16ac71246cee1379f53805ce2b2fec88407fc664b89fb366127924a

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

command :list do |c|
	c.syntax = 'rubychina list '
	c.summary = 'List recent 30 rubychina topics'
	c.description = ''

	c.action do |args, options|


		topics = get("/topics.json")
		topics.each do |topic|
			puts %{\033[1m#{topic['id']}:  回复数量 [#{topic['replies_count']}]   "#{topic['title']}"\033[0m}
		end

	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubychina-0.0.1 ./lib/rubychina/commands/list.rb