Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ For node version, check out [scaleway-cli-node](https://github.com/moul/scaleway

We recommend to use the latest version, using:

:warning: Ensure you have a go version `>= 1.5`

```shell
go get -u github.com/scaleway/scaleway-cli/cmd/scw
GO15VENDOREXPERIMENT=1 go get -u github.com/scaleway/scaleway-cli/cmd/scw
```

or
Expand All @@ -92,7 +94,7 @@ brew install scw
Install the latest stable release on Mac OS X manually:

```bash
# prepare for forst install and upgrade
# prepare for first install and upgrade
mkdir -p /usr/local/bin
mv /usr/local/bin/scw /tmp/scw.old

Expand Down Expand Up @@ -135,18 +137,19 @@ Windows | `x86_64`

You can run scaleway-cli in a sandboxed way using Docker.

*warning*: caching is disabled
:warning: caching is disabled

```console
$ docker run -it --rm --volume=$HOME/.scwrc:/.scwrc scaleway/cli ps
```

### Manual build

1. [Install go](https://golang.org/doc/install)
1. [Install go](https://golang.org/doc/install) a version `>= 1.5`
2. Ensure you have `$GOPATH` and `$PATH` well configured, something like:
* `export GOPATH=$HOME/go`
* `export PATH=$PATH:$GOPATH/bin`
* `export GO15VENDOREXPERIMENT=1`
3. Install the project: `go get github.com/scaleway/scaleway-cli/...`
4. Run: `scw`

Expand Down Expand Up @@ -417,7 +420,7 @@ List images.

Options:

-a, --all=false Show all iamges
-a, --all=false Show all images
-f, --filter="" Filter output based on conditions provided
-h, --help=false Print usage
--no-trunc=false Don't truncate output
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/cmd_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package cli
import (
"strings"

"github.com/scaleway/scaleway-cli/pkg/commands"
"github.com/Sirupsen/logrus"
"github.com/scaleway/scaleway-cli/pkg/commands"
)

var cmdImages = &Command{
Expand Down Expand Up @@ -37,7 +37,7 @@ var cmdImages = &Command{
}

func init() {
cmdImages.Flag.BoolVar(&imagesA, []string{"a", "-all"}, false, "Show all iamges")
cmdImages.Flag.BoolVar(&imagesA, []string{"a", "-all"}, false, "Show all images")
cmdImages.Flag.BoolVar(&imagesNoTrunc, []string{"-no-trunc"}, false, "Don't truncate output")
cmdImages.Flag.BoolVar(&imagesQ, []string{"q", "-quiet"}, false, "Only show numeric IDs")
cmdImages.Flag.BoolVar(&imagesHelp, []string{"h", "-help"}, false, "Print usage")
Expand Down