File: utils.go

package info (click to toggle)
golang-github-pterm-pterm 0.12.79-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,640 kB
  • sloc: makefile: 4
file content (8 lines) | stat: -rw-r--r-- 159 bytes parent folder | download
1
2
3
4
5
6
7
8
package internal

import "os"

// RunsInCi returns true if the current build is running on a CI server.
func RunsInCi() bool {
	return os.Getenv("CI") != ""
}