INNER CODE UNIT · Swift

createBuildCommands

skiptools/skip · Plugins/SkipPlugin/SkipPlugin.swift:43

    func createBuildCommands(context: PluginContext, target: Target) async throws -> [Command] {
        if skipDisabled {
            Diagnostics.remark("Skip plugin disabled through SKIP_PLUGIN_DISABLED environment variable")
            return []
        }

        if skipRootTargetNames.contains(target.name) {
            Diagnostics.remark("Skip eliding target name \(target.name)")
            return []
        }
        guard let sourceTarget = target as? SourceModuleTarget else {
            Diagnostics.remark("Skip skipping non-source target name \(target.name)")
            return []
        }

        var cmds: [Command] = []
        if skippyOnly {
            cmds += try await createPreflightBuildCommands(context: context, target: sourceTarget)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…