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:
Stephen J Day 2017-03-02 13:50:09 -08:00
parent 2831e9b469
commit 6ab6cdce71
No known key found for this signature in database
GPG Key ID: 67B3DED84EDC823F
3 changed files with 4 additions and 4 deletions

2
cmd/dist/delete.go vendored
View File

@ -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

View File

@ -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
View File

@ -61,7 +61,7 @@ distribution tool
},
}
app.Commands = []cli.Command{
fetchCommand,
fetchObjectCommand,
ingestCommand,
activeCommand,
getCommand,