@@ -54,10 +54,12 @@ func NewCmdExport(fullName string, f *clientcmd.Factory, in io.Reader, out io.Wr
54
54
exporter := & DefaultExporter {}
55
55
var filenames []string
56
56
cmd := & cobra.Command {
57
- Use : "export RESOURCE/NAME ... [flags]" ,
58
- Short : "Export resources so they can be used elsewhere" ,
59
- Long : exportLong ,
60
- Example : fmt .Sprintf (exportExample , fullName ),
57
+ Use : "export RESOURCE/NAME ... [flags]" ,
58
+ Short : "Export resources so they can be used elsewhere" ,
59
+ Long : exportLong ,
60
+ Example : fmt .Sprintf (exportExample , fullName ),
61
+ Deprecated : "use the oc get --export" ,
62
+ Hidden : true ,
61
63
Run : func (cmd * cobra.Command , args []string ) {
62
64
err := RunExport (f , exporter , in , out , cmd , args , filenames )
63
65
if err == kcmdutil .ErrExit {
@@ -66,7 +68,6 @@ func NewCmdExport(fullName string, f *clientcmd.Factory, in io.Reader, out io.Wr
66
68
kcmdutil .CheckErr (err )
67
69
},
68
70
}
69
- cmd .Deprecated = "Use the `get --export` command instead."
70
71
71
72
cmd .Flags ().String ("as-template" , "" , "Output a Template object with specified name instead of a List or single object." )
72
73
cmd .Flags ().Bool ("exact" , false , "If true, preserve fields that may be cluster specific, such as service clusterIPs or generated names" )
0 commit comments