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

Function createHelp

src/cmd/create.go:510–529  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

508}
509
510func createHelp(cmd *cobra.Command, args []string) {
511 if utils.IsInsideContainer() {
512 if !utils.IsInsideToolboxContainer() {
513 fmt.Fprintf(os.Stderr, "Error: this is not a Toolbx container\n")
514 return
515 }
516
517 if _, err := utils.ForwardToHost(); err != nil {
518 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
519 return
520 }
521
522 return
523 }
524
525 if err := showManual("toolbox-create"); err != nil {
526 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
527 return
528 }
529}
530
531func getDBusSystemSocket() (string, error) {
532 logrus.Debug("Resolving path to the D-Bus system socket")

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…