黑客新闻命令行界面
Hacker News CLI

原始链接: https://pythonhosted.org/hackernews-cli/commands.html

开始使用 hn 命令:$ hn --help 用法:hn [选项] 命令 [参数]... HackerNews 命令行 - 献给黑客 选项: --version 显示版本并退出。 --help 显示此信息并退出。 命令: comment 在 HackerNews 上评论故事 comments 显示故事的评论 go 跳转到 HackerNews 上的故事 stories 列出故事 $ hn stories --help 用法:hn stories [选项] 列出故事 选项: -s, --sort_by [newest|best] 排序方式 -l, --limit INTEGER 显示的头条故事数量 --help 显示此信息并退出。 $ hn go --help 用法:hn go [选项] STORY_ID 跳转到 HackerNews 上的故事 选项: --help 显示此信息并退出。 $ hn comments --help 用法:hn comments [选项] STORY_ID 显示故事的评论 选项: --help 显示此信息并退出。 $ hn comment --help 用法:hn comment [选项] STORY_ID 在 HackerNews 上评论故事 选项: --help 显示此信息并退出。

一个新 Hacker News 命令行界面 (CLI) 工具在 Hacker News 上分享,引发了用户讨论。虽然有些人对它的潜力感到兴奋,但许多评论指出存在严重易用性问题。 主要抱怨是缺乏清晰的安装说明,以及指向 GitHub 仓库的链接已损坏。用户还注意到该工具需要 Python 2.7,这是一个过时的版本,并对需要自行修复提供的链接中的错误表示沮丧。 一位用户已经分叉了该项目,并计划改进“开发者体验”,承认需要更新。这次讨论强调了易于访问的文档和维护良好的仓库对于开源项目的重要性。
相关文章

原文

Start hacking with hn command:

$ hn --help
Usage: hn [OPTIONS] COMMAND [ARGS]...

  HackerNews CLI - for hackers

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  comment   comment story on HackerNews
  comments  show comments for the story
  go        go to the story on HackerNews
  stories   list stories
$ hn stories --help
Usage: hn stories [OPTIONS]

  list stories

Options:
  -s, --sort_by [newest|best]  sort type
  -l, --limit INTEGER          number of top stories to show
  --help                       Show this message and exit.
$ hn go --help
Usage: hn go [OPTIONS] STORY_ID

  go to the story on HackerNews

Options:
  --help  Show this message and exit.
$ hn comments --help
Usage: hn comments [OPTIONS] STORY_ID

  show comments for the story

Options:
  --help  Show this message and exit.
$ hn comment --help
Usage: hn comment [OPTIONS] STORY_ID

  comment story on HackerNews

Options:
  --help  Show this message and exit.
联系我们 contact @ memedata.com