MCPcopy
hub / github.com/containers/toolbox / enterHelp

Function enterHelp

src/cmd/enter.go:131–150  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

129}
130
131func enterHelp(cmd *cobra.Command, args []string) {
132 if utils.IsInsideContainer() {
133 if !utils.IsInsideToolboxContainer() {
134 fmt.Fprintf(os.Stderr, "Error: this is not a Toolbx container\n")
135 return
136 }
137
138 if _, err := utils.ForwardToHost(); err != nil {
139 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
140 return
141 }
142
143 return
144 }
145
146 if err := showManual("toolbox-enter"); err != nil {
147 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
148 return
149 }
150}

Callers

nothing calls this directly

Calls 1

showManualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…