Skip to content

Commit 0c28634

Browse files
committed
Renamed InitProfile -> ProfileCreate
And also corresponding messages: InitProfileRequest -> ProfileCreateRequest InitProfileResponse -> ProfileCreateResponse
1 parent 8c712ae commit 0c28634

File tree

4 files changed

+551
-550
lines changed

4 files changed

+551
-550
lines changed

commands/service_profile_init.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import (
2929
"github.com/arduino/go-paths-helper"
3030
)
3131

32-
// InitProfile creates a new project file if it does not exist. If a profile name with the associated FQBN is specified,
32+
// ProfileCreate creates a new project file if it does not exist. If a profile name with the associated FQBN is specified,
3333
// it is added to the project.
34-
func (s *arduinoCoreServerImpl) InitProfile(ctx context.Context, req *rpc.InitProfileRequest) (*rpc.InitProfileResponse, error) {
34+
func (s *arduinoCoreServerImpl) ProfileCreate(ctx context.Context, req *rpc.ProfileCreateRequest) (*rpc.ProfileCreateResponse, error) {
3535
// Returns an error if the main file is missing from the sketch so there is no need to check if the path exists
3636
sk, err := sketch.New(paths.New(req.GetSketchPath()))
3737
if err != nil {
@@ -101,5 +101,5 @@ func (s *arduinoCoreServerImpl) InitProfile(ctx context.Context, req *rpc.InitPr
101101
}
102102
}
103103

104-
return &rpc.InitProfileResponse{ProjectFilePath: projectFilePath.String()}, nil
104+
return &rpc.ProfileCreateResponse{ProjectFilePath: projectFilePath.String()}, nil
105105
}

0 commit comments

Comments
 (0)