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{ var deleteCommand = cli.Command{
Name: "delete", Name: "delete",
Aliases: []string{"delete", "del", "remove", "rm"}, Aliases: []string{"del", "remove", "rm"},
Usage: "permanently delete one or more blobs.", Usage: "permanently delete one or more blobs.",
ArgsUsage: "[flags] [<digest>, ...]", ArgsUsage: "[flags] [<digest>, ...]",
Description: `Delete one or more blobs permanently. Successfully deleted 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 // then receives object/hint lines on stdin, returning content as
// needed. // needed.
var fetchCommand = cli.Command{ var fetchObjectCommand = cli.Command{
Name: "fetch", Name: "fetch-object",
Usage: "retrieve objects from a remote", Usage: "retrieve objects from a remote",
ArgsUsage: "[flags] <remote> <object> [<hint>, ...]", ArgsUsage: "[flags] <remote> <object> [<hint>, ...]",
Description: `Fetch objects by identifier from a remote.`, 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{ app.Commands = []cli.Command{
fetchCommand, fetchObjectCommand,
ingestCommand, ingestCommand,
activeCommand, activeCommand,
getCommand, getCommand,