shellBool returns "1" for true and "0" for false (shell convention).
(b bool)
| 1459 | |
| 1460 | // shellBool returns "1" for true and "0" for false (shell convention). |
| 1461 | func shellBool(b bool) string { //nolint:revive // trivial bool-to-string helper |
| 1462 | if b { |
| 1463 | return "1" |
| 1464 | } |
| 1465 | return "0" |
| 1466 | } |
| 1467 | |
| 1468 | func developInCoder() bool { |
| 1469 | return os.Getenv("DEVELOP_IN_CODER") == "1" || os.Getenv("CODER_AGENT_URL") != "" |
no outgoing calls