Skip to content

Commit

Permalink
Rename ResolveEnv to ResolveVars in runner.proto
Browse files Browse the repository at this point in the history
  • Loading branch information
adambabik committed Feb 2, 2024
1 parent fd8617d commit be9f21e
Show file tree
Hide file tree
Showing 17 changed files with 566 additions and 578 deletions.
15 changes: 7 additions & 8 deletions internal/api/runme/runner/v1/runner.proto
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ message ExecuteResponse {
ProcessPID pid = 4;
}

message ResolveEnvRequest {
message ResolveVarsRequest {
oneof source {
// commands are commands to be executed by the program.
// The commands are joined and executed as a script.
Expand Down Expand Up @@ -221,7 +221,7 @@ message ResolveEnvRequest {
}
}

message ResolveEnvResult {
message ResolveVarsResult {
// name is the name of the environment variable.
string name = 1;

Expand All @@ -236,8 +236,8 @@ message ResolveEnvResult {
string resolved_value = 3;
}

message ResolveEnvResponse {
repeated ResolveEnvResult items = 1;
message ResolveVarsResponse {
repeated ResolveVarsResult items = 1;
}

service RunnerService {
Expand All @@ -255,10 +255,9 @@ service RunnerService {
// other fields will be ignored.
rpc Execute(stream ExecuteRequest) returns (stream ExecuteResponse) {}

// ResolveEnv resolves environment variables from a script or a list of commands
// ResolveVars resolves variables from a script or a list of commands
// using the provided sources, which can be a list of environment variables,
// a session, or a project.
// The result contains all found environment variables. If the env is in any source,
// it is considered resolved. Otherwise, it is marked as unresolved.
rpc ResolveEnv(ResolveEnvRequest) returns (ResolveEnvResponse) {}
// For now, the resolved variables are only the exported ones using `export`.
rpc ResolveVars(ResolveVarsRequest) returns (ResolveVarsResponse) {}
}
15 changes: 7 additions & 8 deletions internal/api/runme/runner/v2alpha1/runner.proto
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ message ExecuteResponse {
google.protobuf.UInt32Value pid = 4;
}

message ResolveEnvRequest {
message ResolveVarsRequest {
oneof source {
// commands are commands to be executed by the program.
// The commands are joined and executed as a script.
Expand Down Expand Up @@ -193,7 +193,7 @@ message ResolveEnvRequest {
}
}

message ResolveEnvResult {
message ResolveVarsResult {
// name is the name of the environment variable.
string name = 1;

Expand All @@ -208,8 +208,8 @@ message ResolveEnvResult {
string resolved_value = 3;
}

message ResolveEnvResponse {
repeated ResolveEnvResult items = 1;
message ResolveVarsResponse {
repeated ResolveVarsResult items = 1;
}

service RunnerService {
Expand All @@ -228,10 +228,9 @@ service RunnerService {
// other fields will be ignored.
rpc Execute(stream ExecuteRequest) returns (stream ExecuteResponse) {}

// ResolveEnv resolves environment variables from a script or a list of commands
// ResolveVars resolves variables from a script or a list of commands
// using the provided sources, which can be a list of environment variables,
// a session, or a project.
// The result contains all found environment variables. If the env is in any source,
// it is considered resolved. Otherwise, it is marked as unresolved.
rpc ResolveEnv(ResolveEnvRequest) returns (ResolveEnvResponse) {}
// For now, the resolved variables are only the exported ones using `export`.
rpc ResolveVars(ResolveVarsRequest) returns (ResolveVarsResponse) {}
}
Loading

0 comments on commit be9f21e

Please sign in to comment.