execute query from shell

This commit is contained in:
Jan Prochazka
2020-12-08 18:51:00 +01:00
parent e0c91214fd
commit f8ee3b92cf
7 changed files with 97 additions and 8 deletions

View File

@@ -18,6 +18,15 @@ export function extractShellApiPlugins(functionName, props): string[] {
return res;
}
export function extractPackageName(name): string {
if (!name) return null;
const nsMatch = name.match(/^([^@]+)@([^@]+)/);
if (nsMatch) {
return nsMatch[2];
}
return null;
}
export function extractShellApiFunctionName(functionName) {
const nsMatch = functionName.match(/^([^@]+)@([^@]+)/);
if (nsMatch) {