func handleRm(ctx *cli.Context, client *daemon.Client) error { repoPath := prefixSlash(ctx.Args().First()) if err := client.Remove(repoPath, ctx.Bool("recursive")); err != nil { return ExitCode{ UnknownError, fmt.Sprintf("Could not remove file: `%s`: %v", repoPath, err), } } return nil }