mirror of https://github.com/databricks/cli.git
silent more
This commit is contained in:
parent
df67c28a05
commit
d0af547fa5
|
@ -138,7 +138,7 @@ func newEnvCommand() *cobra.Command {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cmd.OutOrStdout().Write(raw)
|
||||
_, _ = cmd.OutOrStdout().Write(raw)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue