targetDirectory property

String get targetDirectory

The directory a command acts on: the current package in a project, otherwise the -C directory or the working directory.

Implementation

String get targetDirectory =>
    project?.workspace.current.path ??
    p.normalize(
      p.absolute(p.join(workingDirectory, invocation.directory ?? '.')),
    );