@@ -37,7 +37,7 @@ func CreateAndInit() *rpc.Instance {
37
37
// CreateAndInitWithProfile returns a new initialized instance using the given profile of the given sketch.
38
38
// If Create fails the CLI prints an error and exits since to execute further operations a valid Instance is mandatory.
39
39
// 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 ) {
41
41
instance , err := create ()
42
42
if err != nil {
43
43
feedback .Fatal (tr ("Error creating instance: %v" , err ), feedback .ErrGeneric )
@@ -67,7 +67,7 @@ func Init(instance *rpc.Instance) {
67
67
// InitWithProfile initializes instance by loading libraries and platforms specified in the given profile of the given sketch.
68
68
// In case of loading failures return a list of errors for each platform or library that we failed to load.
69
69
// 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 {
71
71
downloadCallback := feedback .ProgressBar ()
72
72
taskCallback := feedback .TaskProgress ()
73
73
@@ -76,7 +76,7 @@ func InitWithProfile(instance *rpc.Instance, profileName string, sketchPath *pat
76
76
initReq .SketchPath = sketchPath .String ()
77
77
initReq .Profile = profileName
78
78
}
79
- var profile * rpc.Profile
79
+ var profile * rpc.SketchProfile
80
80
err := commands .Init (initReq , func (res * rpc.InitResponse ) {
81
81
if st := res .GetError (); st != nil {
82
82
feedback .Warning (tr ("Error initializing instance: %v" , st .GetMessage ()))
0 commit comments