code: func run(c *cobra.Command, args []string) (err error) {
  	var w io.WriteCloser = os.Stdout
  
  	if isatty.IsTerminal(os.Stdout.Fd()) {
  		cmd := exec.Command("less", "-R")
  		cmd.Stdout = os.Stdout
  		cmd.Stderr = os.Stderr
  
  		defer cmd.Wait()
  
  		w, err = cmd.StdinPipe()
  		if err != nil {
  			return err
  		}
  		defer w.Close()
  
  		if err := cmd.Start(); err != nil {
  			return err
  		}
  	}
  
  	_, err = io.Copy(w, doc.Reader())
  	return err
  }
docs: // Run command.