From bbafd915cb5a5392c1693d43ae865e735f745637 Mon Sep 17 00:00:00 2001 From: Kyle Date: Wed, 7 Jun 2023 21:47:30 +0800 Subject: [PATCH] Fix preview issue on macOS and Linux --- Sources/SwiftDocCUtilities/Docc.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftDocCUtilities/Docc.swift b/Sources/SwiftDocCUtilities/Docc.swift index 306e99c085..207c5c9eac 100644 --- a/Sources/SwiftDocCUtilities/Docc.swift +++ b/Sources/SwiftDocCUtilities/Docc.swift @@ -10,7 +10,7 @@ import ArgumentParser -#if canImport(NIOHTTP) +#if canImport(NIOHTTP1) private let subcommands: [ParsableCommand.Type] = [Docc.Convert.self, Docc.Index.self, Docc.Preview.self, Docc.ProcessArchive.self] #else private let subcommands: [ParsableCommand.Type] = [Docc.Convert.self, Docc.Index.self, Docc.ProcessArchive.self]