EnableCommand installs a hub item and its dependencies. In case this command is called during an upgrade, the sub-items list it taken from the latest version in the index, otherwise from the version that is currently installed.
| 13 | // In case this command is called during an upgrade, the sub-items list it taken from the |
| 14 | // latest version in the index, otherwise from the version that is currently installed. |
| 15 | type EnableCommand struct { |
| 16 | Item *cwhub.Item |
| 17 | Force bool |
| 18 | FromLatest bool |
| 19 | } |
| 20 | |
| 21 | func NewEnableCommand(item *cwhub.Item, force bool) *EnableCommand { |
| 22 | return &EnableCommand{Item: item, Force: force} |
nothing calls this directly
no outgoing calls
no test coverage detected