📦CocoaPods / Cork
← 返回首页
A delightful CLI UI module.
⚖️ MIT📅 创建于 2015-07-14🔄 更新于 2025-11-20

📄 仓库 README

在 GitHub 查看 ↗
来自 GitHub 仓库自述文件 · 版权归原作者所有

Cork

A delightful CLI UI module.

Usage

board = Cork::Board.new()

You can use Cork to print simple messages.

board.puts('Hello World')

You can use notice to print notices to the user colored in green.

board.notice("We're out of 🍷.")

This is an example of Cork used to build a simple list.

board.section('Types of Wine') do
  board.labeled('Red', ['Shiraz', 'Merlot'])
  board.labeled('White', ['Gewürztraminer', 'Riesling'])
end
Types of Wine
  - Red:
    - Shiraz
    - Merlot
  - White:
    - Gewürztraminer
    - Riesling

This is an example of Cork used to print a warning with actions the user can take.

board.warn('Merlot is down to 1 oz', [
  'Purchase some more.'
])

board.print_warnings
[!] Merlot is down to 1 oz
    - Purchase some more.

📈 近 7 天 Star 趋势

每日新增 Star(柱)与累计 Star(线)· 数据来自 GitHub

🏆 排名变化趋势

在各榜单中的排名历史(数字越小越靠前)

📋 历史上榜记录

每次快照的详细数据
日期 榜单 排名 周期新增 总 STAR