workflowがbuiltin優先になっている
This commit is contained in:
parent
14130ee958
commit
9980327863
@ -2,7 +2,7 @@
|
|||||||
* Workflow switching command
|
* Workflow switching command
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { listWorkflows, loadWorkflow, getBuiltinWorkflow } from '../config/index.js';
|
import { listWorkflows, loadWorkflow } from '../config/index.js';
|
||||||
import { getCurrentWorkflow, setCurrentWorkflow } from '../config/paths.js';
|
import { getCurrentWorkflow, setCurrentWorkflow } from '../config/paths.js';
|
||||||
import { info, success, error } from '../utils/ui.js';
|
import { info, success, error } from '../utils/ui.js';
|
||||||
import { selectOption } from '../prompt/index.js';
|
import { selectOption } from '../prompt/index.js';
|
||||||
@ -48,7 +48,7 @@ export async function switchWorkflow(cwd: string, workflowName?: string): Promis
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if workflow exists
|
// Check if workflow exists
|
||||||
const config = getBuiltinWorkflow(workflowName) || loadWorkflow(workflowName, cwd);
|
const config = loadWorkflow(workflowName, cwd);
|
||||||
|
|
||||||
if (!config) {
|
if (!config) {
|
||||||
error(`Workflow "${workflowName}" not found`);
|
error(`Workflow "${workflowName}" not found`);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user