return the names of the installed parents of an item, used to check if we can remove it
(item *cwhub.Item)
| 75 | |
| 76 | // return the names of the installed parents of an item, used to check if we can remove it |
| 77 | func installedParentNames(item *cwhub.Item) []string { |
| 78 | ret := make([]string, 0) |
| 79 | |
| 80 | for _, parent := range item.Ancestors() { |
| 81 | if parent.State.IsInstalled() { |
| 82 | ret = append(ret, parent.Name) |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | return ret |
| 87 | } |
| 88 | |
| 89 | func (cli *cliItem) remove(ctx context.Context, args []string, interactive bool, dryRun bool, purge bool, force bool, all bool) error { |
| 90 | cfg := cli.cfg() |
no test coverage detected
searching dependent graphs…