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

Function installProgress

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

Source from the content-addressed store, hash-verified

1098const installProgressLabel = "Downloading skill files"
1099
1100func installProgress(io *iostreams.IOStreams, total int) func(done, total int) {
1101 if total <= 0 {
1102 return nil
1103 }
1104 return func(done, total int) {
1105 if done == 0 {
1106 io.StartProgressIndicatorWithLabel(installProgressLabel)
1107 } else if done >= total {
1108 io.StopProgressIndicator()
1109 }
1110 }
1111}
1112
1113func friendlyDir(dir string) string {
1114 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