Skip to content

martinmosegaard/fogbugz-commands

Repository files navigation

Fogbugz::Commands

Gem Version Build Status Code Climate

Command line interaction with FogBugz.

Installation

Install as Ruby gem:

gem install fogbugz-commands

or use Docker as mentioned below.

Setup

You need to configure the login information.

Either set environment variables:

FOGBUGZ_EMAIL=you@company.com
FOGBUGZ_SERVER=company.fogbugz.com

(and optionally FOGBUGZ_PASSWORD if you feel like it)

Or create a file in your home directory called .fogbugz.yml with this content:

email: you@company.com
server: company.fogbugz.com

Usage

Use report to view the time registered in a time interval on a particular case or for a particular person:

fogbugz report --from 2016-10-01 --to 2017-02-12 --id 67
fogbugz report --from 2016-10-01 --to 2017-02-12 --case 12345

Use last_week to view the time registered for a particular case, all persons in the previous week:

fogbugz last_week --case 12345

Use this_week to view the time registered for a particular person, all cases in the current week:

fogbugz this_week --id 67

Use person to view details of a person based on the person's FogBugz ID:

fogbugz person --id 67

View help on all commands or a specific command with:

fogbugz help
fogbugz help <command>

Run in Docker

Use the image martinm/fogbugz and set environment variables:

docker run --rm -it -e FOGBUGZ_EMAIL=you@company.com -e FOGBUGZ_SERVER=company.fogbugz.com martinm/fogbugz help

External Links

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Comments, bug reports and pull requests are welcome on GitHub at https://github.com/martinmosegaard/fogbugz-commands.

License

The gem is available as open source under the terms of the MIT License.

About

A FogBugz CLI written in Ruby.

Resources

License

Stars

Watchers

Forks

Packages

No packages published