Add packaging and release automation
This commit is contained in:
parent
2a3b58c44e
commit
8e51e47587
1082 changed files with 356427 additions and 0 deletions
14
vendor/github.com/charmbracelet/x/cellbuf/link.go
generated
vendored
Normal file
14
vendor/github.com/charmbracelet/x/cellbuf/link.go
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package cellbuf
|
||||
|
||||
import (
|
||||
"github.com/charmbracelet/colorprofile"
|
||||
)
|
||||
|
||||
// Convert converts a hyperlink to respect the given color profile.
|
||||
func ConvertLink(h Link, p colorprofile.Profile) Link {
|
||||
if p == colorprofile.NoTTY {
|
||||
return Link{}
|
||||
}
|
||||
|
||||
return h
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue