(options imagesOptions)
| 147 | } |
| 148 | |
| 149 | func shouldUseTree(options imagesOptions) (bool, error) { |
| 150 | if options.quiet { |
| 151 | if options.tree { |
| 152 | return false, errors.New("--quiet is not yet supported with --tree") |
| 153 | } |
| 154 | return false, nil |
| 155 | } |
| 156 | if options.noTrunc { |
| 157 | if options.tree { |
| 158 | return false, errors.New("--no-trunc is not yet supported with --tree") |
| 159 | } |
| 160 | return false, nil |
| 161 | } |
| 162 | if options.showDigests { |
| 163 | if options.tree { |
| 164 | return false, errors.New("--show-digest is not yet supported with --tree") |
| 165 | } |
| 166 | return false, nil |
| 167 | } |
| 168 | if options.format != "" { |
| 169 | if options.tree { |
| 170 | return false, errors.New("--format is not yet supported with --tree") |
| 171 | } |
| 172 | return false, nil |
| 173 | } |
| 174 | return true, nil |
| 175 | } |
| 176 | |
| 177 | // isDangling is a copy of [formatter.isDangling]. |
| 178 | func isDangling(img image.Summary) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…