File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
plugins/plugin-codeflare-dashboard/src/controller/dashboard Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ export default async function dashboard(args: Arguments<Options>, cmd: "db" | "d
8787 const { demo } = args . parsedOptions
8888 const scale = args . parsedOptions . s || 1
8989
90- const kind = args . argvNoOptions [ args . argvNoOptions . indexOf ( cmd ) + 1 ] || "all"
91- const { jobId, profile } = await jobIdFrom ( args , cmd )
90+ const jobIdOffset = args . argvNoOptions [ args . argvNoOptions . indexOf ( cmd ) + 2 ] ? 2 : 1
91+ const kindOffset = jobIdOffset === 2 ? 1 : 9999
92+ const kind = args . argvNoOptions [ args . argvNoOptions . indexOf ( cmd ) + kindOffset ] || "all"
93+ const { jobId, profile } = await jobIdFrom ( args , cmd , jobIdOffset )
9294
9395 if ( ! isValidKindA ( kind ) ) {
9496 throw new Error ( usage ( cmd , [ "all" ] ) )
You can’t perform that action at this time.
0 commit comments