Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnlinkCommand

Hierarchy

Properties

Methods

Properties

all

all: boolean = Option.Boolean(`-A,--all`, false, {description: `Unlink all workspaces belonging to the target project from the current one`,})

cwd

cwd: undefined | string = Option.String(`--cwd`, {hidden: true})

leadingArguments

leadingArguments: string[] = Option.Rest()

Static paths

paths: string[][] = [[`unlink`],]

Static usage

usage: Usage = Command.Usage({description: `disconnect the local project from another one`,details: `This command will remove any resolutions in the project-level manifest that would have been added via a yarn link with similar arguments.`,examples: [[`Unregister a remote workspace in the current project`,`$0 unlink ~/ts-loader`,], [`Unregister all workspaces from a remote project in the current project`,`$0 unlink ~/jest --all`,], [`Unregister all previously linked workspaces`,`$0 unlink --all`,], [`Unregister all workspaces matching a glob`,`$0 unlink '@babel/*' 'pkg-{a,b}'`,]],})

Methods

execute

  • execute(): Promise<0 | 1>

Generated using TypeDoc