profile.go
1 package profile 2 3 import ( 4 "path/filepath" 5 6 "github.com/thunderbrewhq/binana/go/app" 7 "github.com/thunderbrewhq/binana/go/profile" 8 ) 9 10 var Profile profile.Profile 11 12 func Open(profile_name string) { 13 if profile_name == "" { 14 app.Fatal("no profile selected") 15 } 16 if err := Profile.Open( 17 filepath.Join("profile", profile_name), 18 filepath.Join("artifacts", profile_name), 19 ); err != nil { 20 app.Fatal(err) 21 } 22 } 23 24 func Close() { 25 //Profile.Close() 26 }