1 Star 0 Fork 0

Xingwa / gitee_client

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Gitee Client

Gitee Client 是一个使用 Rust 编写的命令行工具和库,用于与 Gitee API 交互。它支持查询用户、企业和仓库下的所有 Pull Requests,以及获取满足条件的 PR 的详细信息。

功能

  • 查询用户、企业和仓库下的所有 Pull Requests
  • 查询每个 Pull Request 的详细信息
  • 获取满足条件的 PR 的详细信息列表

使用

首先,确保您已安装 Rust。然后,使用以下命令克隆仓库并构建命令行工具:

git clone https://gitee.com/wangxing-hw/gitee_client.git
cd gitee_client
cargo build --release

构建完成后,您可以在 target/release 目录下找到名为 gitee_client_cli 的可执行文件。将其添加到您的 PATH 中,或者直接执行它。

命令行参数

USAGE:
    gitee_client_cli [OPTIONS] <SUBCOMMAND>

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

OPTIONS:
    -t, --access-token <ACCESS_TOKEN>    Sets the Gitee access token

SUBCOMMANDS:
    enterprise_prs    Get enterprise pull requests
    help              Prints this message or the help of the given subcommand(s)

示例

以下示例演示了如何使用 gitee_client_cli 查询企业 Pull Requests。

首先,设置您的 Gitee Access Token:

export GITEE_ACCESS_TOKEN=your_access_token

查询企业 Pull Requests:

gitee_client_cli -t $GITEE_ACCESS_TOKEN enterprise_prs --enterprise your_enterprise_name

查询特定仓库的 Pull Requests:

gitee_client_cli -t $GITEE_ACCESS_TOKEN enterprise_prs --enterprise your_enterprise_name --repo your_repo_name

查询带有特定标签的 Pull Requests:

gitee_client_cli -t $GITEE_ACCESS_TOKEN enterprise_prs --enterprise your_enterprise_name --labels bug,feature

有关更多选项和参数,请参阅命令行帮助:

gitee_client_cli --help

空文件

简介

Rust gitee client 包括库和命令行工具 展开 收起
Rust
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wangxing-hw/gitee_client.git
git@gitee.com:wangxing-hw/gitee_client.git
wangxing-hw
gitee_client
gitee_client
master

搜索帮助