From eeb5a821ede8a8846856fa92e6ff04593f3e648a Mon Sep 17 00:00:00 2001 From: Duc-Tam Nguyen Date: Tue, 16 Jun 2026 10:38:14 +0700 Subject: [PATCH] add README --- README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..640f148 --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# ifeng-cli + +Command line for iFeng News (凤凰新闻, ifeng.com). + +## Install + +``` +go install github.com/tamnd/ifeng-cli/cmd/ifeng@latest +``` + +## Commands + +``` +ifeng hot hourly trending articles, ordered by view count +ifeng today today's hot articles +ifeng version print version +``` + +## Flags + +``` +-o, --output string table|json|jsonl|csv|tsv|url|raw (default "auto") +-n, --limit int limit number of records +-q, --quiet suppress progress on stderr + --no-header omit header row in table/csv/tsv + --fields strings comma-separated columns to include + --template string Go text/template applied per record + --delay duration minimum spacing between requests + --timeout duration per-request timeout + --retries int retry attempts on 5xx +``` + +## License + +MIT