-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6a84b40
commit f549072
Showing
2 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
miqversions | ||
--- | ||
|
||
*Because naming is hard. Really, really hard.* | ||
|
||
### Usage | ||
|
||
```bash | ||
$ miqversions | ||
+------------+------------------------------+---------------+ | ||
| MANAGEIQ | CLOUDFORMS MANAGEMENT ENGINE | CLOUDFORMS | | ||
+------------+------------------------------+---------------+ | ||
| | 5.1.x | 2.0 | | ||
| | 5.2.x | 3.0 | | ||
| Anand | 5.3.x | 3.1 | | ||
| Botvinnik | 5.4.x | 3.2 | | ||
| Capablanca | 5.5.x | 4.0 | | ||
| Darga | 5.6.x | 4.1 | | ||
| Euwe | 5.7.x | 4.2 | | ||
| Fine | 5.8.x (pending) | 4.5 (pending) | | ||
+------------+------------------------------+---------------+ | ||
``` | ||
|
||
### Installation | ||
|
||
#### Homebrew (MacOS) | ||
|
||
```bash | ||
$ brew tap chrisarcand/formulae | ||
$ brew install miqversions | ||
``` | ||
|
||
#### Other platforms | ||
|
||
[Golang](https://golang.org/) must be installed. | ||
|
||
```bash | ||
$ go get github.com/chrisarcand/miqversions | ||
``` | ||
|
||
### License | ||
|
||
[Apache License, Version 2.0](https://github.com/chrisarcand/miqversion/blob/master/LICENSE) © 2017 [Chris Arcand](https://github.com/chrisarcand) |
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,28 @@ | ||
package main | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/olekukonko/tablewriter" | ||
) | ||
|
||
func main() { | ||
data := [][]string{ | ||
[]string{"", "5.1.x", "2.0"}, | ||
[]string{"", "5.2.x", "3.0"}, | ||
[]string{"Anand", "5.3.x", "3.1"}, | ||
[]string{"Botvinnik", "5.4.x", "3.2"}, | ||
[]string{"Capablanca", "5.5.x", "4.0"}, | ||
[]string{"Darga", "5.6.x", "4.1"}, | ||
[]string{"Euwe", "5.7.x", "4.2"}, | ||
[]string{"Fine", "5.8.x (pending)", "4.5 (pending)"}, | ||
} | ||
|
||
table := tablewriter.NewWriter(os.Stdout) | ||
table.SetHeader([]string{"ManageIQ", "CloudForms Management Engine", "CloudForms"}) | ||
|
||
for _, v := range data { | ||
table.Append(v) | ||
} | ||
table.Render() | ||
} |