Is it possible to access package code from a command plugin?


I would like to develop a SPM command plugin to facilitate the deployment of a package to the cloud. The plugin requires meta data about "how" to deploy.

In my ideal scenario, the package developer would write a deploy struct, similar to package, in a Deploy.swift file at the root of the project.

I would like the command plugin to load that file and consume the data in the struct.

Is it possible when writing a command plugin today ? Is there a discussion happening to make it possible in the future ?