there4 / fogbugz-cli
FogBugz 命令行客户端
Requires
- symfony/config: v2.3.4
- symfony/console: v2.3.4
- symfony/yaml: v2.3.4
- there4/fogbugz-api: dev-master
- twig/twig: v1.13.2
This package is auto-updated.
Last update: 2024-09-20 04:06:10 UTC
README
从命令行管理 FogBugz 案例管理
这是一个简单的命令行客户端应用程序,可用于管理您的 FogBugz 账户,包括查看状态、读取案例和留下简短笔记。它使用 Symfony Console 构建。
快速开始
从命令行运行 fb
phar 文件。它将提示您输入主机、用户名和密码。它将在 .fogbugz.yml 文件中存储 API 令牌。
帮助
FogBugz Command Line Client version 1.2.5 by Craig Davis
Usage:
[options] command [arguments]
Options:
--help -h Display this help message.
--quiet -q Do not output any message.
--verbose -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version -V Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction -n Do not ask any interactive question.
Available commands:
assign Assign a case to a different user
cases Show cases for the current filter
close Close a case
current Display the current working case
estimate Set the working time estimate for a case
filters List filters for the current user
help Displays help for a command
list Lists commands
login Establish a session with FogBugz
logout End the session with FogBugz
note Leave a note on a case
open Open a case in your local browser
parent View the parent of a case
ps1 Display the current working case
reactivate Reactivate a case. (The opposite of resolving a case)
recent Show cases you have recently worked on.
reopen Reopen a Case
resolve Resolve a case
search Search by keyword
selfupdate Updates fb.phar to the latest version.
setfilter Set a FogBugz search filter
setup Configure this FogBugz client
star Star a case
start Start working on a case
stop Stop your current working case.
unstar Remove the star from a case
version Show version information
view View a case by case number
设置
您不必克隆此存储库。您可以从 这里 下载 phar 文件,并将其保存到您的计算机中,作为 fb
保存在您的 PATH
中。
此应用程序存储一个包含主机、用户、API 令牌和其他设置的配置文件。如果您想更改此路径,请设置环境变量 FOGBUGZ_CONFIG
为值例如 ~/.fogbugz.yml
以在您的家目录中存储配置文件。
`env FOGBUGZ_CONFIG='~/.fogbugz.yml'`
您可以将 fb
phar 文件放在 bin 路径中,或者将别名添加到 bash 配置文件中。
`alias fb='~/Projects/fogbugz-php-cli/fb'`
依赖关系
此应用程序需要 PHP 5.3。如果您需要在 PHP 5.2 上运行,您可以使用具有较少依赖项但基本功能相似的 较旧 cli 分支。
开发新命令
项目依赖于 Composer 来加载依赖项。一旦您有了它,请运行 composer install
以加载所需的库。从这一点开始,您应该可以通过运行 php working.php
来开发。
如果您想向存储库添加新命令,请查看 src/FogBugz/Command
目录。创建新的命令文件后,将其添加到 src/FogBugz/Cli/Working.php
文件中,大约在第 50 行初始化命令。
构建 Phar
如果您想重新构建 phar 文件,您需要 Pake。一旦您有了它,您需要运行 pake build
。它将清理文件,运行一些代码检查工具,然后最终构建 phar 文件。
故障排除
date_default_timezone_get())
:一些用户收到有关系统时区的消息。这是您 PHP 配置的问题。请参阅 PHP 文档 以了解如何修复此消息。