mirror of
https://github.com/jimeh/rbheap.git
synced 2026-02-19 12:56:46 +00:00
25 lines
432 B
Go
25 lines
432 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// inspectCmd represents the inspect command
|
|
var inspectCmd = &cobra.Command{
|
|
Use: "inspect",
|
|
Short: "Inspect ObjectSpace dumps from Ruby proceees",
|
|
}
|
|
|
|
var inspectOpts = struct {
|
|
Verbose bool
|
|
}{}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(inspectCmd)
|
|
|
|
inspectCmd.PersistentFlags().BoolVarP(&inspectOpts.Verbose,
|
|
"verbose", "v", false,
|
|
"print verbose information to STDERR",
|
|
)
|
|
}
|