My project spec includes a couple of extra schemes for the main iOS app that don't work when I use tuist generate MyTarget
to focus on a target. I would like for these schemes to not be generated when I've focused on a subset of targets.
If my Project.swift
file has additional context about the conditions under which it is being used, I can write code that checks whether to supply the schemes.
One way to do this would be:
Codable
struct:public struct Context {
/// The path to this manifest file.
public let path: String
/// The list of targets whose sources should be included. All targets if empty.
public let sources: Set<String>
/// The configuration to generate for.
public let configuration: String?
}
ManifestLoader.buildArguments(_:at:)
context
property to ProjectDescription.Environment
that reads the argument and decodes the contextThis context would then be available in all the manifests.
Alternatively we could avoid using Codable
and pass separate arguments instead. We'd parse them using ArgumentParser
in Environment
to populate a context struct.
14.5
4.20.0
15.4
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too