github.com/ssube/gitlab-ci-multi-runner@v1.2.1-0.20160607142738-b8d1285632e6/helpers/home_dir.go (about)

     1  package helpers
     2  
     3  import (
     4  	"github.com/docker/docker/pkg/homedir"
     5  	"os"
     6  )
     7  
     8  func GetCurrentWorkingDirectory() string {
     9  	dir, err := os.Getwd()
    10  	if err == nil {
    11  		return dir
    12  	}
    13  	return ""
    14  }
    15  
    16  func GetHomeDir() string {
    17  	return homedir.Get()
    18  }