MCPcopy Create free account
hub / github.com/FalconOpsLLC/goexec / args

Function args

cmd/args.go:68–78  ·  view source on GitHub ↗
(reqs ...func(*cobra.Command, []string) error)

Source from the content-addressed store, hash-verified

66}
67
68func args(reqs ...func(*cobra.Command, []string) error) (fn func(*cobra.Command, []string) error) {
69 return func(cmd *cobra.Command, args []string) (err error) {
70
71 for _, req := range reqs {
72 if err = req(cmd, args); err != nil {
73 return
74 }
75 }
76 return
77 }
78}
79
80func argsAcceptValues(name string, in *string, valid ...string) func(*cobra.Command, []string) error {
81 return func(*cobra.Command, []string) error {

Callers 7

tsch.goFile · 0.85
scmr.goFile · 0.85
argsSmbClientFunction · 0.85
argsRpcClientFunction · 0.85
argsOutputFunction · 0.85
dcom.goFile · 0.85
wmi.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…