Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yousafsyed authored Jan 10, 2021
1 parent 98903d5 commit 77f55f3
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# badger
Badger is a small CLI utility for generating a shields.io compatible JSON from clover.xml report and uploading it to a badger-server, see github.com/crowphp/badger-server to read more about the server.

## Installing badger from composer

```
composer require --dev crowphp/badger:dev-master
```

Notice: At the moment the badger is under development use it with caution.

## Usage

Help Document

```
$ php vendor/bin/badger --help
Console Tool
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
help Displays help for a command
list Lists commands
upload
upload:coverage Creates json for coverage badge shields.io and uploads it to a given badger server
```

Create badge schema on a badger server for a given branch
```
$ php upload:coverage <server> <branch> <secret-key>
Description:
Creates json for coverage badge shields.io and uploads it to a given badger server
Usage:
upload:coverage <server> <branch> <secret-key>
Arguments:
server URL for Badger Server
branch The branch name for the coverage
secret-key Secret api key for badger server
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

0 comments on commit 77f55f3

Please sign in to comment.