github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/utils/man/descriptions_unix.go (about)

     1  //go:build !linux && !windows
     2  // +build !linux,!windows
     3  
     4  package man
     5  
     6  import (
     7  	"fmt"
     8  )
     9  
    10  var manBlock = []rune(`
    11  	trypipe {
    12  		/usr/bin/zcat -f ${man -w $command} -> mandoc -O width=%d -c
    13  	}
    14  	catch {
    15  		man <env:MANWIDTH=%d> $command
    16  	}`)
    17  
    18  func ManPageExecBlock(width int) []rune {
    19  	return []rune(fmt.Sprintf(string(manBlock), width, width))
    20  }