Remove Complete function and references

This commit is contained in:
guineveresaenger
2018-08-13 07:49:51 -07:00
parent 924aa6fb29
commit 6a2786a5c4

View File

@@ -63,10 +63,6 @@ func newCmdAddAnnotation(fsys fs.FileSystem) *cobra.Command {
if err != nil {
return err
}
err = o.Complete(cmd, args)
if err != nil {
return err
}
return o.RunAddMetadata(fsys, annotation)
},
}
@@ -87,10 +83,6 @@ func newCmdAddLabel(fsys fs.FileSystem) *cobra.Command {
if err != nil {
return err
}
err = o.Complete(cmd, args)
if err != nil {
return err
}
return o.RunAddMetadata(fsys, label)
},
}
@@ -121,11 +113,6 @@ func (o *addMetadataOptions) Validate(args []string, k KindOfAdd) error {
return nil
}
// Complete completes addMetadata command.
func (o *addMetadataOptions) Complete(cmd *cobra.Command, args []string) error {
return nil
}
// RunAddMetadata runs addLabel and addAnnotation commands (do real work).
func (o *addMetadataOptions) RunAddMetadata(fsys fs.FileSystem, k KindOfAdd) error {
mf, err := newKustomizationFile(constants.KustomizationFileName, fsys)