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

Function rmHelp

src/cmd/rm.go:114–133  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

112}
113
114func rmHelp(cmd *cobra.Command, args []string) {
115 if utils.IsInsideContainer() {
116 if !utils.IsInsideToolboxContainer() {
117 fmt.Fprintf(os.Stderr, "Error: this is not a Toolbx container\n")
118 return
119 }
120
121 if _, err := utils.ForwardToHost(); err != nil {
122 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
123 return
124 }
125
126 return
127 }
128
129 if err := showManual("toolbox-rm"); err != nil {
130 fmt.Fprintf(os.Stderr, "Error: %s\n", err)
131 return
132 }
133}

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…