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

Function help

src/cmd/help.go:40–55  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

38}
39
40func help(cmd *cobra.Command, args []string) error {
41 if utils.IsInsideContainer() {
42 if !utils.IsInsideToolboxContainer() {
43 return errors.New("this is not a Toolbx container")
44 }
45
46 exitCode, err := utils.ForwardToHost()
47 return &exitError{exitCode, err}
48 }
49
50 if err := helpShowManual(args); err != nil {
51 return err
52 }
53
54 return nil
55}
56
57func helpHelp(cmd *cobra.Command, args []string) {
58 if utils.IsInsideContainer() {

Callers

nothing calls this directly

Calls 1

helpShowManualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…