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

Function runHelp

src/cmd/run.go:492–511  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

490}
491
492func runHelp(cmd *cobra.Command, args []string) {
493 if utils.IsInsideContainer() {
494 if !utils.IsInsideToolboxContainer() {
495 fmt.Fprintf(os.Stderr, "Error: this is not a Toolbx container\n")
496 return
497 }
498
499 if _, err := utils.ForwardToHost(); err != nil {
500 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
501 return
502 }
503
504 return
505 }
506
507 if err := showManual("toolbox-run"); err != nil {
508 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
509 return
510 }
511}
512
513func callFlatpakSessionHelper(container podman.Container) error {
514 name := container.Name()

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…