Merge pull request #214 from adshmh/add-unit-tests-to-stack-package

add unit tests to stack package
This commit is contained in:
Vincent Demeester
2017-06-21 10:00:08 +02:00
committed by GitHub
25 changed files with 703 additions and 18 deletions

View File

@ -18,7 +18,7 @@ type listOptions struct {
format string
}
func newListCommand(dockerCli *command.DockerCli) *cobra.Command {
func newListCommand(dockerCli command.Cli) *cobra.Command {
opts := listOptions{}
cmd := &cobra.Command{
@ -36,7 +36,7 @@ func newListCommand(dockerCli *command.DockerCli) *cobra.Command {
return cmd
}
func runList(dockerCli *command.DockerCli, opts listOptions) error {
func runList(dockerCli command.Cli, opts listOptions) error {
client := dockerCli.Client()
ctx := context.Background()