#文档 #阅读 #应用 #命令行应用 #跟踪器 #CLI #页面

应用程序 torus

一个简单的 CLI 阅读列表跟踪器

2 个版本

使用旧的 Rust 2015

0.1.1 2019年1月8日
0.1.0 2019年1月8日

#359可视化

GPL-3.0-only

23KB
500

描述

torus 是一个简单的 CLI 阅读列表跟踪器。它基于一个朋友写的脚本,并且我主要为了乐趣和实践而编写这个。

用法

CLI Reading List application

USAGE:
    torus [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    add         add entry
    choose      Choose a random entry for you to read
    delete      Delete an entry
    finish      Mark an entry as read
    help        Prints this message or the help of the given subcommand(s)
    list        list entries in order of page
    rate        Rate an entry
    search      find entries. case insensitive match on 'TITLE', 'AUTHOR', and 'GENRE'
    set-page    Set the last page you read for an entry
    shell       Enter interactive mode

示例会话

您输入

torus help add

输出

torus-add 
add entry

USAGE:
    torus add <TITLE> <AUTHOR> <GENRE> [PAGE]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <TITLE>     title of entry
    <AUTHOR>    Author of work
    <GENRE>     Genre of work
    <PAGE>      Page you are currently at [default: 0]

您输入

torus add'TheBook' 'Alan W.Watts'Philosophy

输出

Successfully added The Book by Alan W. Watts

您输入

torus list

输出

+----+----------+------------+------------+------+------+-------------------+-------------------+--------+
| ID | Name     | AUTHOR     | GENRE      | PAGE | READ | DATE ADDED        | DATE FINISHED     | RATING |
+----+----------+------------+------------+------+------+-------------------+-------------------+--------+
| 1  | The Book | Alan Watts | Philosophy | 0    | true | 05/06/17 13:13:29 |                   |        |
+----+----------+------------+------------+------+------+-------------------+-------------------+--------+
End of List

依赖项

~29MB
~540K SLoC