2016-04-05 11:31:11 |
Roger Peppe |
description |
Much of the logic for finding out the current model and controller
lives in ModelCommandBase.SetModelName and related
methods.
When implementing a command that is not a ModelCommand
(for whatever reason - perhaps it's a regular Go command that
isn't using the juju/cmd package), connecting to the API
of the current model involves a lot of copy and paste
of the code in ModelCommandBase and friends.
There should be an high level package API that makes
it trivial to connect to the Juju API. |
Much of the logic for finding out the current model and controller
lives in ModelCommandBase.SetModelName and related
methods.
When implementing a command that is not a ModelCommand
(for whatever reason - perhaps it's a regular Go command that
isn't using the juju/cmd package), connecting to the API
of the current model involves a lot of copy and paste
of the code in ModelCommandBase and friends.
There should be a high level package API that makes
it trivial to connect to the Juju API. |
|
2016-04-05 11:31:32 |
Roger Peppe |
description |
Much of the logic for finding out the current model and controller
lives in ModelCommandBase.SetModelName and related
methods.
When implementing a command that is not a ModelCommand
(for whatever reason - perhaps it's a regular Go command that
isn't using the juju/cmd package), connecting to the API
of the current model involves a lot of copy and paste
of the code in ModelCommandBase and friends.
There should be a high level package API that makes
it trivial to connect to the Juju API. |
Much of the logic for finding out the current model and controller
lives in ModelCommandBase.SetModelName and related
methods.
When implementing a command that is not a ModelCommand
(for whatever reason - perhaps it's a regular Go command that
isn't using the juju/cmd package), connecting to the API
of the current model involves a lot of copy and paste
of the code in ModelCommandBase and friends.
There should be a high level package API that makes
it trivial to connect to the Juju network API. |
|