@@ -37,7 +37,7 @@ func CreateAndInit() *rpc.Instance {
3737// CreateAndInitWithProfile returns a new initialized instance using the given profile of the given sketch.
3838// If Create fails the CLI prints an error and exits since to execute further operations a valid Instance is mandatory.
3939// If Init returns errors they're printed only.
40- func CreateAndInitWithProfile (profileName string , sketchPath * paths.Path ) (* rpc.Instance , * rpc.Profile ) {
40+ func CreateAndInitWithProfile (profileName string , sketchPath * paths.Path ) (* rpc.Instance , * rpc.SketchProfile ) {
4141 instance , err := create ()
4242 if err != nil {
4343 feedback .Fatal (tr ("Error creating instance: %v" , err ), feedback .ErrGeneric )
@@ -67,7 +67,7 @@ func Init(instance *rpc.Instance) {
6767// InitWithProfile initializes instance by loading libraries and platforms specified in the given profile of the given sketch.
6868// In case of loading failures return a list of errors for each platform or library that we failed to load.
6969// Required Package and library indexes files are automatically downloaded.
70- func InitWithProfile (instance * rpc.Instance , profileName string , sketchPath * paths.Path ) * rpc.Profile {
70+ func InitWithProfile (instance * rpc.Instance , profileName string , sketchPath * paths.Path ) * rpc.SketchProfile {
7171 downloadCallback := feedback .ProgressBar ()
7272 taskCallback := feedback .TaskProgress ()
7373
@@ -76,7 +76,7 @@ func InitWithProfile(instance *rpc.Instance, profileName string, sketchPath *pat
7676 initReq .SketchPath = sketchPath .String ()
7777 initReq .Profile = profileName
7878 }
79- var profile * rpc.Profile
79+ var profile * rpc.SketchProfile
8080 err := commands .Init (initReq , func (res * rpc.InitResponse ) {
8181 if st := res .GetError (); st != nil {
8282 feedback .Warning (tr ("Error initializing instance: %v" , st .GetMessage ()))
0 commit comments