#kick #can #questions #it

bin+lib kickable

kickable 是一个创建来回答一个古老问题的 crate... 我能踢它吗?

21 个发布版本

0.5.39 2024 年 1 月 17 日
0.5.29 2023 年 9 月 28 日
0.5.24 2023 年 4 月 13 日
0.5.21 2023 年 3 月 25 日
0.1.4 2022 年 12 月 24 日

#58 in 国际化(i18n)

Download history 11/week @ 2024-06-30

每月 105 次下载

CC0 许可证

49KB
802 代码行

crate status branch status ci status travis status coveralls status codecov status docs status GitHub Sponsors OpenSSF Best Practices

kickable

kickable 是一个创建来回答一个古老问题的 crate... "我能踢它吗?" 此包仅用于展示目的。

什么是可点击的? 目前只有单词 "it" 是可点击的。

安装

通过将其添加到 Cargo.toml 文件中,在您的项目中使用 kickable 库。

$ cargo add kickable

使用方法

use kickable;

fn main() {
    let kickable = kickable::validate("it");
    println!("Can you kick it? {kickable}");
}

命令行界面

安装

从发布页面下载二进制文件并将其放置在您的路径中,或者如果您已安装 cargo。

$ cargo install kickable

使用方法

获取关于 kickable 命令行界面的帮助。

$ kickable --help
kickable is a crate created to answer the age old question... Can I kick it?

Usage: kickable [OPTIONS] <ITEM>

Arguments:
  <ITEM>  The item to check for kick-ability

Options:
  -c, --config <CONFIG>  The path to the configuration file [default: kickable.yaml]
  -h, --help             Print help
  -V, --version          Print version

kickable 命令行界面最基本使用的示例。

$ kickable "it"
Yes, yes you can.

配置

下面是一个可选的 kickable 配置文件示例。

# items that are kickable
items:
  - it   # English
  - él   # Spanish
  - el   # Spanish
  - それ  # Japanese
  - il   # French

# language preferred for i18n messages
lang: en-US # default language

# logging configuration
logging:
  level: 1 # 1: debug, 2: info, 3: warning, 4: error, 5: critical
  file: /var/log/kickable # log file path

# server configuration
server:
  addr: 0.0.0.0 # address to bind to
  port: 8080 # port number

# client configuration
client:
  addr: 0.0.0.0 # address to connect to
  port: 8080 # port number

维护者

Hector Gray (@defstream)

贡献

欢迎拉取请求。请确保所有测试通过 😀

许可证

Kickable 由 Hector Gray 标记为 CC0 1.0 协议。要查看此许可证的副本,请访问 http://creativecommons.org/publicdomain/zero/1.0

license

依赖项

~51–84MB
~1.5M SLoC