kuyoto/covid19-cli

提供用于显示COVID-19统计数据的简单命令行工具。

v1.0.0 2020-06-23 21:26 UTC

This package is auto-updated.

Last update: 2024-08-26 09:09:35 UTC


README

Build Status Total Downloads Latest Stable Version License

此包提供用于显示COVID-19统计数据的简单命令行工具。数据来源于约翰霍普金斯大学系统科学和工程中心(JHU CSSE),并通过covid19api.com提供。

  ____           _     _ _  ___             _ _
 / ___|_____   _(_) __| / |/ _ \        ___| (_)
| |   / _ \ \ / / |/ _` | | (_) |_____ / __| | |
| |__| (_) \ V /| | (_| | |\__, |_____| (__| | |
 \____\___/ \_/ |_|\__,_|_|  /_/       \___|_|_|

COVID-19 CLI 1.0.0

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  about    Display the short information about COVID-19 CLI
  all      Display the available countries
  country  Display the summary of total cases for a given country
  global   Display the summary of total cases world wide
  help     Displays help for a command
  list     Lists commands
  slug     Display a list of available location, slug and country code

安装

推荐通过composer安装此库。

composer require kuyoto/covid19-cli

使用方法

要使用covid19命令,请确保将~/composer/vendor/bin添加到您的PATH环境变量中。

在终端中运行covid19命令以启动应用程序,或运行covid19 help显示所有可用命令。

许可证

该包是开源软件,受MIT许可证许可。