From eb252f074aecc980a03479e4bd3ab33fed4adf73 Mon Sep 17 00:00:00 2001 From: David First Date: Fri, 12 Apr 2024 13:56:17 -0400 Subject: [PATCH] fix(switch), rename --merge to --auto-merge-resolve to be aligned with other commands --- scopes/lanes/lanes/switch.cmd.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scopes/lanes/lanes/switch.cmd.ts b/scopes/lanes/lanes/switch.cmd.ts index fc72d29cb5ec..9fe0712c5ff4 100644 --- a/scopes/lanes/lanes/switch.cmd.ts +++ b/scopes/lanes/lanes/switch.cmd.ts @@ -25,12 +25,12 @@ export class SwitchCmd implements Command { "relevant when the specified lane is a remote lane. create a local alias for the lane (doesnt affect the lane's name on the remote", ], [ - 'm', - 'merge [strategy]', + '', + 'auto-merge-resolve ', 'merge local changes with the checked out version. strategy should be "theirs", "ours" or "manual"', ], ['a', 'get-all', 'DEPRECATED. this is currently the default behavior'], - ['a', 'workspace-only', 'checkout only the components in the workspace to the selected lane'], + ['', 'workspace-only', 'checkout only the components in the workspace to the selected lane'], ['x', 'skip-dependency-installation', 'do not install dependencies of the imported components'], [ 'p', @@ -48,7 +48,7 @@ ${COMPONENT_PATTERN_HELP}`, [lane]: [string], { alias, - merge, + autoMergeResolve, getAll = false, workspaceOnly = false, skipDependencyInstallation = false, @@ -56,7 +56,7 @@ ${COMPONENT_PATTERN_HELP}`, json = false, }: { alias?: string; - merge?: MergeStrategy; + autoMergeResolve?: MergeStrategy; getAll?: boolean; workspaceOnly?: boolean; skipDependencyInstallation?: boolean; @@ -67,7 +67,7 @@ ${COMPONENT_PATTERN_HELP}`, ) { const { components, failedComponents, installationError, compilationError } = await this.lanes.switchLanes(lane, { alias, - merge, + merge: autoMergeResolve, workspaceOnly, pattern, skipDependencyInstallation,