good morning!!!!

Skip to content
Snippets Groups Projects
Commit 6bec5c70 authored by Ferran Borreguero's avatar Ferran Borreguero
Browse files

Add cli info

parent 2c9b2c31
No related branches found
No related tags found
No related merge requests found
package main package main
// Based on https://github.com/hashicorp/nomad/blob/main/command/operator_debug.go
import ( import (
"archive/tar" "archive/tar"
"compress/gzip" "compress/gzip"
...@@ -30,7 +32,9 @@ type DebugCommand struct { ...@@ -30,7 +32,9 @@ type DebugCommand struct {
func (d *DebugCommand) Help() string { func (d *DebugCommand) Help() string {
return `Usage: bor debug return `Usage: bor debug
Debug` Build an archive containing Bor pprof traces
` + d.Flags().Help()
} }
func (d *DebugCommand) Flags() *flagset.Flagset { func (d *DebugCommand) Flags() *flagset.Flagset {
...@@ -52,7 +56,7 @@ func (d *DebugCommand) Flags() *flagset.Flagset { ...@@ -52,7 +56,7 @@ func (d *DebugCommand) Flags() *flagset.Flagset {
// Synopsis implements the cli.Command interface // Synopsis implements the cli.Command interface
func (d *DebugCommand) Synopsis() string { func (d *DebugCommand) Synopsis() string {
return "Debug" return "Build an archive containing Bor pprof traces"
} }
// Run implements the cli.Command interface // Run implements the cli.Command interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment