@@ -41,8 +41,8 @@ type inputModel struct {
4141func NewCmd (params * types.CmdParams ) * cobra.Command {
4242 cmd := & cobra.Command {
4343 Use : "create" ,
44- Short : "Creates a log access token" ,
45- Long : "Creates a log access token." ,
44+ Short : "Creates a logs access token" ,
45+ Long : "Creates a logs access token." ,
4646 Args : args .NoArgs ,
4747 Example : examples .Build (
4848 examples .NewExample (
@@ -85,7 +85,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8585 instanceLabel = model .InstanceId
8686 }
8787
88- prompt := fmt .Sprintf ("Are you sure you want to create a access token for the log instance %q in the project %q?" , instanceLabel , projectLabel )
88+ prompt := fmt .Sprintf ("Are you sure you want to create a access token for the logs instance %q in the project %q?" , instanceLabel , projectLabel )
8989 err = params .Printer .PromptForConfirmation (prompt )
9090 if err != nil {
9191 return err
@@ -95,7 +95,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
9595 req := buildRequest (ctx , model , apiClient )
9696 resp , err := req .Execute ()
9797 if err != nil {
98- return fmt .Errorf ("create log access-token : %w" , err )
98+ return fmt .Errorf ("create logs access-token : %w" , err )
9999 }
100100
101101 return outputResult (params .Printer , model .OutputFormat , instanceLabel , resp )
@@ -151,7 +151,7 @@ func outputResult(p *print.Printer, outputFormat, instanceLabel string, accessTo
151151 return fmt .Errorf ("access token cannot be nil" )
152152 }
153153 return p .OutputResult (outputFormat , accessToken , func () error {
154- p .Outputf ("Created access token for log instance %q.\n \n ID: %s\n Token: %s\n " , instanceLabel , utils .PtrValue (accessToken .Id ), utils .PtrValue (accessToken .AccessToken ))
154+ p .Outputf ("Created access token for logs instance %q.\n \n ID: %s\n Token: %s\n " , instanceLabel , utils .PtrValue (accessToken .Id ), utils .PtrValue (accessToken .AccessToken ))
155155 return nil
156156 })
157157}
0 commit comments