Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Update readme with correct service versions and profile (#935)
Browse files Browse the repository at this point in the history
The current code examples were referencing outdated docker versions and also a
profile that is not available by default.

Signed-off-by: Adam Stokes <51892+adam-stokes@users.noreply.github.com>
(cherry picked from commit c941a6e)
  • Loading branch information
adam-stokes authored and mergify-bot committed Mar 24, 2021
1 parent efb84f4 commit ac30655
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ The tool will use Golang's de-facto standard for writing CLIs [`Cobra`](https://

```sh
# if you are in the Go development world
$ GO111MODULE=on go run main.go run service apache -v 2.4
$ GO111MODULE=on go run main.go run service mysql -v 5.6
$ GO111MODULE=on go run main.go run service apache -v 2.4.20
$ GO111MODULE=on go run main.go run service mysql -v 5.7.12

# if you prefer to install the CLI
$ GO111MODULE=on go build -i -o op
$ ./op run service apache -v 2.4
$ ./op run service mysql -v 5.6
$ ./op run profile observability
$ ./op run service apache -v 2.4.20
$ ./op run service mysql -v 5.7.12
$ ./op run profile metricbeat
```

The tool also provides a way to stop those running services:
```sh
# if you are in the Go development world
$ GO111MODULE=on go run main.go stop service apache -v 2.4
$ GO111MODULE=on go run main.go stop service mysql -v 5.6
$ GO111MODULE=on go run main.go stop service apache -v 2.4.20
$ GO111MODULE=on go run main.go stop service mysql -v 5.7.12

# if you prefer to install the CLI
$ GO111MODULE=on go build -i -o op
$ ./op stop service apache -v 2.4
$ ./op stop service mysql -v 5.6
$ ./op stop profile observability
$ ./op stop service apache -v 2.4.20
$ ./op stop service mysql -v 5.7.12
$ ./op stop profile metricbeat
```

>By the way, `op` comes from `Observability Provisioner`.
Expand Down

0 comments on commit ac30655

Please sign in to comment.