mirror of
https://github.com/containers/skopeo.git
synced 2025-06-29 16:17:44 +00:00
deprecate skopeo layers
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
2c5532746f
commit
b3b322e10b
@ -2,7 +2,9 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"fmt"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containers/image/directory"
|
"github.com/containers/image/directory"
|
||||||
@ -12,14 +14,14 @@ import (
|
|||||||
"github.com/urfave/cli"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TODO(runcom): document args and usage
|
|
||||||
var layersCmd = cli.Command{
|
var layersCmd = cli.Command{
|
||||||
Name: "layers",
|
Name: "layers",
|
||||||
Usage: "Get layers of IMAGE-NAME",
|
Usage: "Get layers of IMAGE-NAME",
|
||||||
ArgsUsage: "IMAGE-NAME [LAYER...]",
|
ArgsUsage: "IMAGE-NAME [LAYER...]",
|
||||||
Action: func(c *cli.Context) error {
|
Action: func(c *cli.Context) error {
|
||||||
|
fmt.Fprintln(os.Stderr, `DEPRECATED: skopeo layers is deprecated in favor of skopeo copy`)
|
||||||
if c.NArg() == 0 {
|
if c.NArg() == 0 {
|
||||||
return errors.New("please specify an image")
|
return errors.New("Usage: layers imageReference [layer...]")
|
||||||
}
|
}
|
||||||
rawSource, err := parseImageSource(c, c.Args()[0], []string{
|
rawSource, err := parseImageSource(c, c.Args()[0], []string{
|
||||||
// TODO: skopeo layers only supports these now
|
// TODO: skopeo layers only supports these now
|
||||||
|
Loading…
Reference in New Issue
Block a user