github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/cmd/modelcmd/export_test.go (about) 1 // Copyright 2013 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package modelcmd 5 6 import "github.com/juju/juju/jujuclient" 7 8 var ( 9 GetCurrentControllerFilePath = getCurrentControllerFilePath 10 ) 11 12 // NewModelCommandBase returns a new ModelCommandBase with the given client 13 // store, controller name, and model name. 14 func NewModelCommandBase(store jujuclient.ClientStore, controller, account, model string) *ModelCommandBase { 15 return &ModelCommandBase{ 16 store: store, 17 controllerName: controller, 18 accountName: account, 19 modelName: model, 20 } 21 }