예제 #1
0
func (si *ScoreInfo) updateFromConfig(config *configureit.Config) {
	// propogate PATH overrides.
	opt := config.Get("dir")
	sopt, _ := opt.(*configureit.StringOption)
	si.InitialEnv["PATH"] = sopt.Value

	// set the interface type.
	opt = config.Get("interface")
	sopt, _ = opt.(*configureit.StringOption)
	si.Interface = sopt.Value

	// propogate initial Pwd
	opt = config.Get("dir")
	sopt, _ = opt.(*configureit.StringOption)
	si.InitialPwd = sopt.Value
}
예제 #2
0
파일: scores.go 프로젝트: anchor/orchestra
func (si *ScoreInfo) updateFromConfig(config *configureit.Config) {
	// set the interface type.
	opt := config.Get("interface")
	sopt, _ := opt.(*configureit.StringOption)
	si.Interface = sopt.Value
}