package command import ( "encoding/json" "fmt" "io" "strings" fwexec "github.com/SimBienvenueHoulBoumi/devzone/internal/framework/exec" ) // failureText explains a failed command: its stderr when it wrote one, else the // start error or the exit status. func failureText(res fwexec.Result, err error) string { if msg := strings.TrimSpace(string(res.Stderr)); msg != "" { return msg } if err != nil { return err.Error() } return "failed" } // removeEach runs one removal per id with the arguments args builds. A success // prints "✔