示例#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
func (si *ScoreInfo) updateFromConfig(config *configureit.Config) {
	// set the interface type.
	opt := config.Get("interface")
	sopt, _ := opt.(*configureit.StringOption)
	si.Interface = sopt.Value
}