Skip to content

Commit 3d8307e

Browse files
committed
manifest: unexport subcommand
unexport manifest subcommand. Signed-off-by: ChengyuZhu6 <hudson@cyzhu.com>
1 parent c3c0bf0 commit 3d8307e

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

cmd/nerdctl/manifest/manifest.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ func Command() *cobra.Command {
3333
}
3434

3535
cmd.AddCommand(
36-
InspectCommand(),
37-
CreateCommand(),
38-
AnnotateCommand(),
39-
RemoveCommand(),
40-
PushCommand(),
36+
inspectCommand(),
37+
createCommand(),
38+
annotateCommand(),
39+
removeCommand(),
40+
pushCommand(),
4141
)
4242

4343
return cmd

cmd/nerdctl/manifest/manifest_annotate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/containerd/nerdctl/v2/pkg/cmd/manifest"
2626
)
2727

28-
func AnnotateCommand() *cobra.Command {
28+
func annotateCommand() *cobra.Command {
2929
var cmd = &cobra.Command{
3030
Use: "annotate INDEX/MANIFESTLIST MANIFEST",
3131
Short: "Add additional information to a local image manifest",

cmd/nerdctl/manifest/manifest_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/containerd/nerdctl/v2/pkg/cmd/manifest"
2828
)
2929

30-
func CreateCommand() *cobra.Command {
30+
func createCommand() *cobra.Command {
3131
var cmd = &cobra.Command{
3232
Use: "create INDEX/MANIFESTLIST MANIFEST [MANIFEST...]",
3333
Short: "Create a local index/manifest list for annotating and pushing to a registry",

cmd/nerdctl/manifest/manifest_inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/containerd/nerdctl/v2/pkg/formatter"
2929
)
3030

31-
func InspectCommand() *cobra.Command {
31+
func inspectCommand() *cobra.Command {
3232
var cmd = &cobra.Command{
3333
Use: "inspect MANIFEST",
3434
Short: "Display the contents of a manifest or image index/manifest list",

cmd/nerdctl/manifest/manifest_push.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/containerd/nerdctl/v2/pkg/cmd/manifest"
2626
)
2727

28-
func PushCommand() *cobra.Command {
28+
func pushCommand() *cobra.Command {
2929
var cmd = &cobra.Command{
3030
Use: "push [OPTIONS] INDEX/MANIFESTLIST",
3131
Short: "Push a manifest list to a registry",

cmd/nerdctl/manifest/manifest_remove.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"github.com/containerd/nerdctl/v2/pkg/cmd/manifest"
2727
)
2828

29-
func RemoveCommand() *cobra.Command {
29+
func removeCommand() *cobra.Command {
3030
var cmd = &cobra.Command{
3131
Use: "rm INDEX/MANIFESTLIST [INDEX/MANIFESTLIST...]",
3232
Short: "Remove one or more index/manifest lists",

0 commit comments

Comments
 (0)