convertLink function

Link convertLink(
  1. Link link,
  2. Profile profile
)

Converts a Link to respect the given terminal color profile.

Implementation

Link convertLink(Link link, cp.Profile profile) {
  if (profile == cp.Profile.noTty) return const Link();
  return link;
}