task_nocgo.go
21 lines1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//go:build !cgo
package commands
import (
"fmt"
"os"
)
func nocgo() {
fmt.Fprintln(os.Stderr, "this command requires CGO (available on Congo Dev servers)")
os.Exit(1)
}
func Task() { nocgo() }
func Plan() { nocgo() }
func Log() { nocgo() }
func Heartbeat() { nocgo() }
func Repo() { nocgo() }
func Service() { nocgo() }
func Domain() { nocgo() }