MCPcopy Create free account
hub / github.com/cli/cli / installProgress

Function installProgress

pkg/cmd/skills/install/install.go:1113–1124  ·  view source on GitHub ↗
(io *iostreams.IOStreams, total int)

Source from the content-addressed store, hash-verified

1111const installProgressLabel = "Downloading skill files"
1112
1113func installProgress(io *iostreams.IOStreams, total int) func(done, total int) {
1114 if total <= 0 {
1115 return nil
1116 }
1117 return func(done, total int) {
1118 if done == 0 {
1119 io.StartProgressIndicatorWithLabel(installProgressLabel)
1120 } else if done >= total {
1121 io.StopProgressIndicator()
1122 }
1123 }
1124}
1125
1126func friendlyDir(dir string) string {
1127 if cwd, err := os.Getwd(); err == nil {

Callers 2

installRunFunction · 0.85
TestInstallProgressFunction · 0.85

Calls 2

StopProgressIndicatorMethod · 0.65

Tested by 1

TestInstallProgressFunction · 0.68