mirror of
https://github.com/docker/cli.git
synced 2026-09-25 17:02:07 -04:00
daemon: rename from "delete" job to "rm"
This commit fixes following FIXMEs: // FIXME: rename "delete" to "rm" for consistency with the CLI command // FIXME: rename ContainerDestroy to ContainerRm for consistency with the CLI command Signed-off-by: lim seong yeol <seongyeol37@gmail.com> Upstream-commit: 239e932485c3e0f72a4f88ce1301ebe269eb2e27 Component: engine
This commit is contained in:
@@ -679,7 +679,7 @@ func deleteContainers(eng *engine.Engine, version version.Version, w http.Respon
|
||||
if vars == nil {
|
||||
return fmt.Errorf("Missing parameter")
|
||||
}
|
||||
job := eng.Job("delete", vars["name"])
|
||||
job := eng.Job("rm", vars["name"])
|
||||
|
||||
job.Setenv("forceRemove", r.Form.Get("force"))
|
||||
|
||||
|
||||
@@ -455,7 +455,7 @@ func TestDeleteContainers(t *testing.T) {
|
||||
eng := engine.New()
|
||||
name := "foo"
|
||||
var called bool
|
||||
eng.Register("delete", func(job *engine.Job) engine.Status {
|
||||
eng.Register("rm", func(job *engine.Job) engine.Status {
|
||||
called = true
|
||||
if len(job.Args) == 0 {
|
||||
t.Fatalf("Job arguments is empty")
|
||||
|
||||
Reference in New Issue
Block a user