MCPcopy
hub / github.com/lima-vm/lima / String

Method String

cmd/limactl/shell.go:745–750  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

743}
744
745func (s *rsyncStats) String() string {
746 if s.Added == 0 && s.Deleted == 0 && s.Modified == 0 && s.Metadata == 0 {
747 return ""
748 }
749 return fmt.Sprintf("added: %d, deleted: %d, modified: %d, metadata: %d", s.Added, s.Deleted, s.Modified, s.Metadata)
750}
751
752func getRsyncStats(ctx context.Context, source, destination string) (string, *rsyncStats, error) {
753 paths := []string{source, destination}

Callers 15

newDaemonCommandFunction · 0.45
newInstallSystemdCommandFunction · 0.45
newGenDocCommandFunction · 0.45
newUsernetCommandFunction · 0.45
registerCreateFlagsFunction · 0.45
newCopyCommandFunction · 0.45
newDiskCreateCommandFunction · 0.45
newDiskResizeCommandFunction · 0.45
newHostagentCommandFunction · 0.45
newInfoCommandFunction · 0.45
newGenSchemaCommandFunction · 0.45
newShellCommandFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestRsyncStatsStringFunction · 0.36