Add support for protoc and grpc_php_plugin

This commit is contained in:
Shivam Mathur
2020-07-31 20:43:06 +05:30
parent e63d25d41f
commit cb25b9c13a
9 changed files with 253 additions and 3 deletions

View File

@ -292,3 +292,24 @@ export async function getUnsupportedLog(
export async function joins(...str: string[]): Promise<string> {
return [...str].join(' ');
}
/**
* Function to get script extensions
*
* @param os_version
*/
export async function scriptExtension(os_version: string): Promise<string> {
switch (os_version) {
case 'win32':
return '.ps1';
case 'linux':
case 'darwin':
return '.sh';
default:
return await log(
'Platform ' + os_version + ' is not supported',
os_version,
'error'
);
}
}