@@ -26,10 +26,11 @@ import (
26
26
27
27
"github.com/elastic/cloud-sdk-go/pkg/input"
28
28
"github.com/elastic/cloud-sdk-go/pkg/models"
29
- "github.com/elastic/cloud-sdk-go/pkg/util/cmdutil"
29
+ sdkcmdutil "github.com/elastic/cloud-sdk-go/pkg/util/cmdutil"
30
30
"github.com/pkg/errors"
31
31
"github.com/spf13/cobra"
32
32
33
+ cmdutil "github.com/elastic/ecctl/cmd/util"
33
34
"github.com/elastic/ecctl/pkg/ecctl"
34
35
"github.com/elastic/ecctl/pkg/platform/deployment"
35
36
)
@@ -43,7 +44,7 @@ const (
43
44
// Command represents the top level deployment-template command.
44
45
var Command = & cobra.Command {
45
46
Use : "deployment-template" ,
46
- Short : "Manages deployment templates" ,
47
+ Short : cmdutil . AdminReqDescription ( "Manages deployment templates" ) ,
47
48
PreRunE : cobra .MaximumNArgs (0 ),
48
49
Run : func (cmd * cobra.Command , args []string ) {
49
50
cmd .Help ()
@@ -122,7 +123,7 @@ var platformDeploymentTemplateCreateCmd = &cobra.Command{
122
123
Short : "Creates a platform deployment template" ,
123
124
PreRunE : cobra .MaximumNArgs (0 ),
124
125
RunE : func (cmd * cobra.Command , args []string ) error {
125
- if err := cmdutil .FileOrStdin (cmd , "file-template" ); err != nil {
126
+ if err := sdkcmdutil .FileOrStdin (cmd , "file-template" ); err != nil {
126
127
return err
127
128
}
128
129
@@ -155,7 +156,7 @@ var platformDeploymentTemplateUpdateCmd = &cobra.Command{
155
156
Short : "Updates a platform deployment template" ,
156
157
PreRunE : cobra .MinimumNArgs (1 ),
157
158
RunE : func (cmd * cobra.Command , args []string ) error {
158
- if err := cmdutil .FileOrStdin (cmd , "file-template" ); err != nil {
159
+ if err := sdkcmdutil .FileOrStdin (cmd , "file-template" ); err != nil {
159
160
return err
160
161
}
161
162
tc , err := parseTemplateFile (cmd .Flag ("file-template" ).Value .String ())
0 commit comments