-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from grisu48/version
Add version command and omit 'skipped' jobs
- Loading branch information
Showing
4 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ import ( | |
"github.com/streadway/amqp" | ||
) | ||
|
||
const VERSION = "1.0" | ||
|
||
func printUsage() { | ||
fmt.Printf("Usage: %s [REMOTE] [KEY]\n", os.Args[0]) | ||
fmt.Println(" REMOTE - RabbitMQ address (e.g. amqps://opensuse:[email protected])") | ||
|
@@ -38,6 +40,9 @@ func main() { | |
if remote == "-h" || remote == "--help" { | ||
printUsage() | ||
os.Exit(0) | ||
} else if remote == "--version" { | ||
fmt.Println("openqa-mq version " + VERSION) | ||
os.Exit(0) | ||
} | ||
|
||
// Provide some nice shortcuts | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../pc-review.toml |