Skip to content

Commit

Permalink
Merge pull request #214 from platformsh/runtime/rust
Browse files Browse the repository at this point in the history
Add Rust to the list of runtimes
  • Loading branch information
akalipetis authored Mar 26, 2024
2 parents c8bf6cf + a5a5ad3 commit 0473af6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/question/models/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const (
PHP Runtime = "php"
Python Runtime = "python"
Ruby Runtime = "ruby"
Rust Runtime = "rust"
)

var (
Expand All @@ -27,6 +28,7 @@ var (
PHP,
Python,
Ruby,
Rust,
}
)

Expand Down Expand Up @@ -56,6 +58,8 @@ func (r Runtime) Title() string {
return "Python"
case Ruby:
return "Ruby"
case Rust:
return "Rust"
default:
return ""
}
Expand Down
1 change: 1 addition & 0 deletions internal/question/models/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var (
PHP: {"8.2", "8.1", "8.0"},
Python: {"3.11", "3.10", "3.9", "3.8", "3.7"},
Ruby: {"3.2", "3.1", "3.0", "2.7", "2.6", "2.5", "2.4", "2.3"},
Rust: {"1"},
}

ServiceTypeVersions = map[ServiceName][]string{
Expand Down

0 comments on commit 0473af6

Please sign in to comment.