code-intelligence.com/cifuzz@v0.40.0/internal/cmdutils/invocation.go (about) 1 package cmdutils 2 3 import ( 4 "github.com/spf13/cobra" 5 ) 6 7 type Invocation struct { 8 Command string 9 } 10 11 var CurrentInvocation *Invocation 12 13 func InitCurrentInvocation(cmd *cobra.Command) { 14 CurrentInvocation = &Invocation{Command: cmd.CalledAs()} 15 }