-
Notifications
You must be signed in to change notification settings - Fork 5
/
commands.go
27 lines (21 loc) · 986 Bytes
/
commands.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package cmd
import (
"github.com/spf13/cobra"
"github.com/dodopizza/kubectl-shovel/internal/flags"
)
// NewGCDumpCommand return command that perform dotnet-gcdump on target process
func NewGCDumpCommand(commonOptions *CommonOptions) *cobra.Command {
return NewCommandBuilder(commonOptions, flags.NewDotnetGCDump).Build()
}
// NewTraceCommand return command that perform dotnet-trace on target process
func NewTraceCommand(commonOptions *CommonOptions) *cobra.Command {
return NewCommandBuilder(commonOptions, flags.NewDotnetTrace).Build()
}
// NewDumpCommand return command that perform dotnet-dump on target process
func NewDumpCommand(commonOptions *CommonOptions) *cobra.Command {
return NewCommandBuilder(commonOptions, flags.NewDotnetDump).Build()
}
// NewCoreDumpCommand return command that perform createdump on target process
func NewCoreDumpCommand(commonOptions *CommonOptions) *cobra.Command {
return NewCommandBuilder(commonOptions, flags.NewCoreDump).Build()
}