コード例 #1
0
ファイル: scores.go プロジェクト: kuroneko/Orchestra
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
}