packageTopLevel property

String packageTopLevel
getter/setter pair

Top level package path. This must be a standard Dart package directory with pubspec.yaml, the standard package directory structure and an sbom.yaml file if needed. If not supplied on the command line this is defaulted to where sbom was invoked. Note this is always an absolute path.

Implementation

String packageTopLevel = path.current;