compose/cli
Djordje Lukic 11339761ca Change the way a context is stored
Initially we stored the context data in the `Metadata` of the context
but in hindsight this data would be better of in the `Endpoints` because
that's what it is used for.

Before:
```json
{
  "Name": "aci",
  "Metadata": {
    "Type": "aci",
    "Data": {
      "key": "value"
    }
  },
  "Endpoints": {
      "docker": {}
  }
}
```

After:
```json
{
  "Name": "aci",
  "Type": "aci",
  "Metadata": {},
  "Endpoints": {
      "aci": {
          "key": "value"
      },
      "docker": {}
  }
}
```

With this change the contexts that we create are more in line with the contexts the docker cli creates.

It also makes the code less complicated since we don't need to marsal twice any more. The API is nicer too:

```go
// Get a context:
c, err := store.Get(contextName)

// Get the stored endpoint:
var aciContext store.AciContext
if err := contextStore.GetEndpoint(currentContext, &aciContext); err != nil {
	return nil, err
}
```
2020-05-22 16:32:43 +02:00
..
cmd Change the way a context is stored 2020-05-22 16:32:43 +02:00
config Store config dir in CLI context 2020-05-20 15:55:05 +02:00
formatter Add ports convet tests 2020-05-18 12:21:27 +02:00
options Set random container name if not set 2020-05-21 19:28:42 +02:00
v1 Use alpine as base image 2020-05-20 18:39:10 +02:00
main.go Change the way a context is stored 2020-05-22 16:32:43 +02:00
main_test.go Appease linter 2020-05-18 15:12:52 +02:00