PackageManager.writeSelections

Writes the selections file (dub.selections.json)

The selections file is only used for the root package / project. However, due to it being a filesystem interaction, it is managed from the PackageManager.

class PackageManager
void
writeSelections

Parameters

project Package

The root package / project to read the selections file for.

selections Selections!1

The SelectionsFile to write.

overwrite bool

Whether to overwrite an existing selections file. True by default.

Meta