Skip to content

Commit 6a2786a

Browse files
Remove Complete function and references
1 parent 924aa6f commit 6a2786a

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkg/commands/addmetadata.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ func newCmdAddAnnotation(fsys fs.FileSystem) *cobra.Command {
6363
if err != nil {
6464
return err
6565
}
66-
err = o.Complete(cmd, args)
67-
if err != nil {
68-
return err
69-
}
7066
return o.RunAddMetadata(fsys, annotation)
7167
},
7268
}
@@ -87,10 +83,6 @@ func newCmdAddLabel(fsys fs.FileSystem) *cobra.Command {
8783
if err != nil {
8884
return err
8985
}
90-
err = o.Complete(cmd, args)
91-
if err != nil {
92-
return err
93-
}
9486
return o.RunAddMetadata(fsys, label)
9587
},
9688
}
@@ -121,11 +113,6 @@ func (o *addMetadataOptions) Validate(args []string, k KindOfAdd) error {
121113
return nil
122114
}
123115

124-
// Complete completes addMetadata command.
125-
func (o *addMetadataOptions) Complete(cmd *cobra.Command, args []string) error {
126-
return nil
127-
}
128-
129116
// RunAddMetadata runs addLabel and addAnnotation commands (do real work).
130117
func (o *addMetadataOptions) RunAddMetadata(fsys fs.FileSystem, k KindOfAdd) error {
131118
mf, err := newKustomizationFile(constants.KustomizationFileName, fsys)

0 commit comments

Comments
 (0)