MCPcopy
hub / github.com/SpecterOps/BloodHound / CommandRunner

Interface CommandRunner

packages/go/stbernard/command/command.go:48–55  ·  view source on GitHub ↗

CommandRunner is an interface for commands, allowing commands to implement the minimum set of requirements to observe and run the command from above. It is used as a return type to allow passing a usable command to the caller after parsing and creating the command implementation

Source from the content-addressed store, hash-verified

46// type to allow passing a usable command to the caller after parsing and creating
47// the command implementation
48type CommandRunner interface {
49 // Name gets the name of the Command
50 Name() string
51 // Usage gets the usage string for the Command
52 Usage() string
53 // Run will run the command and return any errors
54 Run() error
55}
56
57type command interface {
58 CommandRunner

Callers 24

mainFunction · 0.65
ParseModulesAbsPathsFunction · 0.65
ParseCLIFunction · 0.65
usageGeneratorFunction · 0.65
RunFunction · 0.65
writeFileFunction · 0.65
runTestsMethod · 0.65
ParseMethod · 0.65
ParseCLIFunction · 0.65
usageGeneratorFunction · 0.65
ParseMethod · 0.65

Implementers 14

Commandpackages/go/graphify/graph/graph.go
commandpackages/go/stbernard/command/license/
commandpackages/go/stbernard/command/audit/au
commandpackages/go/stbernard/command/modsync/
commandpackages/go/stbernard/command/show/sho
commandpackages/go/stbernard/command/analysis
commandpackages/go/stbernard/command/tester/t
commandpackages/go/stbernard/command/builder/
commandpackages/go/stbernard/command/goimport
commandpackages/go/stbernard/command/deps/dep
commandpackages/go/stbernard/command/tag/tag.
commandpackages/go/stbernard/command/envdump/

Calls

no outgoing calls

Tested by

no test coverage detected