github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/cmd/juju/cachedimages/export_test.go (about)

     1  // Copyright 2015 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package cachedimages
     5  
     6  import (
     7  	"github.com/juju/cmd"
     8  
     9  	"github.com/juju/juju/cmd/modelcmd"
    10  	"github.com/juju/juju/jujuclient"
    11  )
    12  
    13  var (
    14  	GetListImagesAPI  = &getListImagesAPI
    15  	GetRemoveImageAPI = &getRemoveImageAPI
    16  )
    17  
    18  func NewListCommandForTest(store jujuclient.ClientStore) cmd.Command {
    19  	cmd := &listCommand{}
    20  	cmd.SetClientStore(store)
    21  	return modelcmd.Wrap(cmd)
    22  }
    23  
    24  func NewRemoveCommandForTest(store jujuclient.ClientStore) cmd.Command {
    25  	cmd := &removeCommand{}
    26  	cmd.SetClientStore(store)
    27  	return modelcmd.Wrap(cmd)
    28  }