mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 23:38:24 +00:00
Merge pull request #7659 from somaopensource/soma
daemon: rename from "delete" job to "rm"
This commit is contained in:
+1
-3
@@ -98,8 +98,6 @@ type Daemon struct {
|
||||
|
||||
// Install installs daemon capabilities to eng.
|
||||
func (daemon *Daemon) Install(eng *engine.Engine) error {
|
||||
// FIXME: rename "delete" to "rm" for consistency with the CLI command
|
||||
// FIXME: rename ContainerDestroy to ContainerRm for consistency with the CLI command
|
||||
// FIXME: remove ImageDelete's dependency on Daemon, then move to graph/
|
||||
for name, method := range map[string]engine.Handler{
|
||||
"attach": daemon.ContainerAttach,
|
||||
@@ -110,7 +108,7 @@ func (daemon *Daemon) Install(eng *engine.Engine) error {
|
||||
"container_inspect": daemon.ContainerInspect,
|
||||
"containers": daemon.Containers,
|
||||
"create": daemon.ContainerCreate,
|
||||
"delete": daemon.ContainerDestroy,
|
||||
"rm": daemon.ContainerRm,
|
||||
"export": daemon.ContainerExport,
|
||||
"info": daemon.CmdInfo,
|
||||
"kill": daemon.ContainerKill,
|
||||
|
||||
+1
-2
@@ -11,8 +11,7 @@ import (
|
||||
"github.com/docker/docker/pkg/log"
|
||||
)
|
||||
|
||||
// FIXME: rename to ContainerRemove for consistency with the CLI command.
|
||||
func (daemon *Daemon) ContainerDestroy(job *engine.Job) engine.Status {
|
||||
func (daemon *Daemon) ContainerRm(job *engine.Job) engine.Status {
|
||||
if len(job.Args) != 1 {
|
||||
return job.Errorf("Not enough arguments. Usage: %s CONTAINER\n", job.Name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user