终端中的Bitbucket工作流
ket的Python项目详细描述
KET
ket是一个命令行工具,它可以与 Bitbucket存储库更简单。
你可能知道 GitHub和/或 lab用于GitLab。 好吧,凯特也在努力实现同样的目标,但是 Bitbucket。
KET目前只能管理拉取请求。还有更多!
安装
$ pip install ket
配置
为了与bitbucket存储库交互,ket需要验证 带用户名和API密钥的Bitbucket。用户名通常是 Bitbucket用户名。对于api密钥,您应该使用所谓的app密码。 更多应用程序密码,以及如何创建它们 here。
配置文件
ket试图从文件$HOME/.config/ket
中读取其配置,该文件
格式如下:
[bitbucket]
username = Ch00k
api_key = <app_password>
运行
$ ket
Usage: ket [OPTIONS] COMMAND [ARGS]...
Bitbucket in your command-line
Options:
--help Show this message and exit.
Commands:
pull-request Pull request operations
$ ket pull-request
Usage: ket pull-request [OPTIONS] COMMAND [ARGS]...
Pull request operations
Options:
--help Show this message and exit.
Commands:
approve Approve a pull request
checkout Checkout the branch of a pull request
close Close (decline) a pull request
create Create a pull request
diff Show the diff of a pull request
list List pull requests
merge Merge (accept) a pull request
show Show pull request details
unapprove Unapprove a pull request
制表符完成
要启用制表符完成,请执行
eval "$(_KET_COMPLETE=source ket)"