cmd/dist: change fetch to fetch-object command
To allow us to differentiate from fetching an image, fetch a part of an image and pulling an image, we now call the `fetch` command the `fetch-object` command. We can now introduce a command that does the complete image fetch without creating snapshots, allowing `pull` to perform the entire process. Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
2831e9b469
commit
6ab6cdce71
3 changed files with 4 additions and 4 deletions
2
cmd/dist/delete.go
vendored
2
cmd/dist/delete.go
vendored
|
@ -14,7 +14,7 @@ import (
|
|||
|
||||
var deleteCommand = cli.Command{
|
||||
Name: "delete",
|
||||
Aliases: []string{"delete", "del", "remove", "rm"},
|
||||
Aliases: []string{"del", "remove", "rm"},
|
||||
Usage: "permanently delete one or more blobs.",
|
||||
ArgsUsage: "[flags] [<digest>, ...]",
|
||||
Description: `Delete one or more blobs permanently. Successfully deleted
|
||||
|
|
4
cmd/dist/fetch.go → cmd/dist/fetchobject.go
vendored
4
cmd/dist/fetch.go → cmd/dist/fetchobject.go
vendored
|
@ -25,8 +25,8 @@ import (
|
|||
// then receives object/hint lines on stdin, returning content as
|
||||
// needed.
|
||||
|
||||
var fetchCommand = cli.Command{
|
||||
Name: "fetch",
|
||||
var fetchObjectCommand = cli.Command{
|
||||
Name: "fetch-object",
|
||||
Usage: "retrieve objects from a remote",
|
||||
ArgsUsage: "[flags] <remote> <object> [<hint>, ...]",
|
||||
Description: `Fetch objects by identifier from a remote.`,
|
2
cmd/dist/main.go
vendored
2
cmd/dist/main.go
vendored
|
@ -61,7 +61,7 @@ distribution tool
|
|||
},
|
||||
}
|
||||
app.Commands = []cli.Command{
|
||||
fetchCommand,
|
||||
fetchObjectCommand,
|
||||
ingestCommand,
|
||||
activeCommand,
|
||||
getCommand,
|
||||
|
|
Loading…
Reference in a new issue