e92ec69f61
Update tests to use gotest.tools 👼
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
Upstream-commit: 2c4de4fb5e
Component: cli
2018-06-08 18:24:26 +02:00
32a5db4523
Switch from x/net/context to context
...
Since go 1.7, "context" is a standard package. Since go 1.9,
x/net/context merely provides some types aliased to those in
the standard context package.
The changes were performed by the following script:
for f in $(git ls-files \*.go | grep -v ^vendor/); do
sed -i 's|golang.org/x/net/context|context|' $f
goimports -w $f
for i in 1 2; do
awk '/^$/ {e=1; next;}
/\t"context"$/ {e=0;}
{if (e) {print ""; e=0}; print;}' < $f > $f.new && \
mv $f.new $f
goimports -w $f
done
done
[v2: do awk/goimports fixup twice]
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
Upstream-commit: 6f8070deb2
Component: cli
2018-05-11 16:49:43 -07:00
ef941c7ad3
Convert assert.Check(t, is.Error()) to assert.Error
...
git grep -l -P '^\s+assert\.Check\(t, is\.Error\(' | \
xargs perl -pi -e 's/^(\s+assert\.)Check\(t, is\.Error\((.*)\)$/\1Error(t, \2/'
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: e15b208e96
Component: cli
2018-03-06 16:00:28 -05:00
dd7eb35a89
Convert to assert.NilError
...
Using:
git grep -l '^\s\+assert\.Check(t, err)$' | \
xargs sed -i -e 's/^\(\s\+assert\)\.Check(t, err)$/\1.NilError(t, err)/'
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: baf65a5502
Component: cli
2018-03-06 15:27:34 -05:00
ad1a2c9e1d
Automated migration
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 39c2ca57c1
Component: cli
2018-03-05 19:41:17 -05:00
b141cbce57
Move internal/test package out of cli.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: b3f843afe2
Component: cli
2017-08-22 10:14:25 -04:00
2ff5f1eac9
cli: gofmt + goimports
...
Signed-off-by: Gaetan de Villele <gdevillele@gmail.com >
Upstream-commit: 295140edf2
Component: cli
2017-05-08 10:51:30 -07:00
82b8acb640
rm client and vendor it instead
...
Signed-off-by: Tibor Vass <tibor@docker.com >
Upstream-commit: 57230a7212
Component: cli
2017-05-08 10:33:56 -07:00
82309a74cd
Update imports.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 10641c2aae
Component: cli
2017-04-17 18:07:56 -04:00
b2d0c4c107
Import docker/docker/cli
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com >
Upstream-commit: 1630fc40f8
Component: cli
2017-04-17 17:40:59 -04:00