MCPcopy Create free account
hub / github.com/dotzero/git-profile / Execute

Method Execute

cmd/root.go:54–62  ·  view source on GitHub ↗

Execute initialize the application and run it

()

Source from the content-addressed store, hash-verified

52
53// Execute initialize the application and run it
54func (c *Cmd) Execute() {
55 c.init()
56
57 err := c.Command.Execute()
58 if err != nil {
59 fmt.Println(err)
60 os.Exit(1)
61 }
62}
63
64func (c *Cmd) init() {
65 cobra.OnInitialize(func() {

Callers 15

mainFunction · 0.80
TestImportFunction · 0.80
TestAddFunction · 0.80
TestListFunction · 0.80
TestCurrentFunction · 0.80
TestExportFunction · 0.80
TestDelFunction · 0.80
TestDelKeyFunction · 0.80

Calls 1

initMethod · 0.95

Tested by 15

TestImportFunction · 0.64
TestAddFunction · 0.64
TestListFunction · 0.64
TestCurrentFunction · 0.64
TestExportFunction · 0.64
TestDelFunction · 0.64
TestDelKeyFunction · 0.64
TestDelInteractiveFunction · 0.64