"vscode:/vscode.git/clone" did not exist on "893ee0bc4da8fc18718ad706a1cc0722aa4e49ac"
Unverified Commit 93a43137 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

Support show trial command on (remote | reuse) mode (#3020)

parent e54f9dbd
...@@ -11,7 +11,12 @@ export const Command2 = (): any => { ...@@ -11,7 +11,12 @@ export const Command2 = (): any => {
if (clusterMetaData !== undefined) { if (clusterMetaData !== undefined) {
for (const item of clusterMetaData) { for (const item of clusterMetaData) {
if (item.key === 'command') { if (item.key === 'command') {
trialCommand = item.value; trialCommand = item.value as string;
}
if (item.key === 'trial_config') {
if (typeof item.value === 'object' && 'command' in item.value) {
trialCommand = item.value.command as string;
}
} }
} }
} }
......
...@@ -184,10 +184,14 @@ interface ExperimentParams { ...@@ -184,10 +184,14 @@ interface ExperimentParams {
}; };
clusterMetaData?: { clusterMetaData?: {
key: string; key: string;
value: string; value: string | ClusterItem;
}[]; }[];
} }
interface ClusterItem {
command?: string;
}
interface ExperimentProfile { interface ExperimentProfile {
params: ExperimentParams; params: ExperimentParams;
id: string; id: string;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment