MCPcopy
hub / github.com/git-lfs/git-lfs / logsClearCommand

Function logsClearCommand

commands/command_logs.go:45–52  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

43}
44
45func logsClearCommand(cmd *cobra.Command, args []string) {
46 err := os.RemoveAll(cfg.LocalLogDir())
47 if err != nil {
48 Panic(err, tr.Tr.Get("Error clearing %s", cfg.LocalLogDir()))
49 }
50
51 Print(tr.Tr.Get("Cleared %s", cfg.LocalLogDir()))
52}
53
54func logsBoomtownCommand(cmd *cobra.Command, args []string) {
55 tracerx.Printf("Sample trace message")

Callers

nothing calls this directly

Calls 5

PanicFunction · 0.85
PrintFunction · 0.85
RemoveAllMethod · 0.80
LocalLogDirMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected