silent more

This commit is contained in:
Denis Bilenko 2024-12-09 12:01:36 +01:00
parent df67c28a05
commit d0af547fa5
6 changed files with 8 additions and 8 deletions

View File

@ -138,7 +138,7 @@ func newEnvCommand() *cobra.Command {
if err != nil {
return err
}
cmd.OutOrStdout().Write(raw)
_, _ = cmd.OutOrStdout().Write(raw)
return nil
}

View File

@ -94,7 +94,7 @@ func newTokenCommand(persistentAuth *auth.PersistentAuth) *cobra.Command {
if err != nil {
return err
}
cmd.OutOrStdout().Write(raw)
_, _ = cmd.OutOrStdout().Write(raw)
return nil
}

View File

@ -30,7 +30,7 @@ func NewGenerateJobCommand() *cobra.Command {
}
cmd.Flags().Int64Var(&jobId, "existing-job-id", 0, `Job ID of the job to generate config for`)
cmd.MarkFlagRequired("existing-job-id")
_ = cmd.MarkFlagRequired("existing-job-id")
wd, err := os.Getwd()
if err != nil {

View File

@ -30,7 +30,7 @@ func NewGeneratePipelineCommand() *cobra.Command {
}
cmd.Flags().StringVar(&pipelineId, "existing-pipeline-id", "", `ID of the pipeline to generate config for`)
cmd.MarkFlagRequired("existing-pipeline-id")
_ = cmd.MarkFlagRequired("existing-pipeline-id")
wd, err := os.Getwd()
if err != nil {

View File

@ -20,7 +20,7 @@ func renderJsonOutput(cmd *cobra.Command, b *bundle.Bundle, diags diag.Diagnosti
if err != nil {
return err
}
cmd.OutOrStdout().Write(buf)
_, _ = cmd.OutOrStdout().Write(buf)
return diags.Error()
}

View File

@ -219,10 +219,10 @@ func (l *Logger) writeInplace(event Event) {
}
// clear from cursor to end of screen
l.Writer.Write([]byte("\033[0J"))
_, _ = l.Writer.Write([]byte("\033[0J"))
l.Writer.Write([]byte(event.String()))
l.Writer.Write([]byte("\n"))
_, _ = l.Writer.Write([]byte(event.String()))
_, _ = l.Writer.Write([]byte("\n"))
l.isFirstEvent = false
}