(opts *InstallOptions, client *api.Client, hostname string)
| 616 | } |
| 617 | |
| 618 | func resolveVersion(opts *InstallOptions, client *api.Client, hostname string) (*discovery.ResolvedRef, error) { |
| 619 | opts.IO.StartProgressIndicatorWithLabel("Resolving version") |
| 620 | resolved, err := discovery.ResolveRef(client, hostname, opts.repo.RepoOwner(), opts.repo.RepoName(), opts.version) |
| 621 | opts.IO.StopProgressIndicator() |
| 622 | if err != nil { |
| 623 | return nil, fmt.Errorf("could not resolve version: %w", err) |
| 624 | } |
| 625 | fmt.Fprintf(opts.IO.ErrOut, "Using ref %s (%s)\n", discovery.ShortRef(resolved.Ref), git.ShortSHA(resolved.SHA)) |
| 626 | return resolved, nil |
| 627 | } |
| 628 | |
| 629 | func discoverSkills(opts *InstallOptions, client *api.Client, hostname string, resolved *discovery.ResolvedRef) ([]discovery.Skill, error) { |
| 630 | opts.IO.StartProgressIndicatorWithLabel("Discovering skills") |
no test coverage detected