(cmd *cobra.Command, args []string)
| 508 | } |
| 509 | |
| 510 | func 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 | |
| 531 | func getDBusSystemSocket() (string, error) { |
| 532 | logrus.Debug("Resolving path to the D-Bus system socket") |
nothing calls this directly
no test coverage detected
searching dependent graphs…