Set your Slack status via the command line
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
285 B

package main
import "os"
func getEnvOrDefault(name, defaultValue string) string {
val, ok := os.LookupEnv(name)
if ok {
return val
return defaultValue
func fileExists(path string) bool {
if _, err := os.Stat(path); os.IsNotExist(err) {
return false
return true