Skip to content

Commit

Permalink
Do the thing
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisarcand committed May 22, 2017
1 parent 6a84b40 commit f549072
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
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)
28 changes: 28 additions & 0 deletions main.go
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()
}

0 comments on commit f549072

Please sign in to comment.