feat: install remote now writes files to disk
This commit is contained in:
+7
-1
@@ -60,7 +60,13 @@ pub enum Language {
|
||||
|
||||
impl From<&String> for Language {
|
||||
fn from(s: &String) -> Self {
|
||||
match s.to_lowercase().as_str() {
|
||||
Language::from_extension(s)
|
||||
}
|
||||
}
|
||||
|
||||
impl Language {
|
||||
pub fn from_extension(ext: &str) -> Self {
|
||||
match ext.to_lowercase().as_str() {
|
||||
"sh" => Language::Bash,
|
||||
"py" => Language::Python,
|
||||
"ts" => Language::TypeScript,
|
||||
|
||||
Reference in New Issue
Block a user