Skip to content

Commit 22893c4

Browse files
committed
make fmt
1 parent c98a999 commit 22893c4

7 files changed

Lines changed: 27 additions & 10 deletions

File tree

Sources/ContainerCommands/System/SystemStart.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ extension Application {
8181
env[ApplicationRoot.environmentName] = appRoot.path(percentEncoded: false)
8282
env[InstallRoot.environmentName] = installRoot.path(percentEncoded: false)
8383
if let logRoot {
84-
env[LogRoot.environmentName] = logRoot.isAbsolute
84+
env[LogRoot.environmentName] =
85+
logRoot.isAbsolute
8586
? logRoot.string
8687
: FilePath(FileManager.default.currentDirectoryPath).appending(logRoot.components).string
8788
}

Sources/ContainerLog/FileLogHandler.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//===----------------------------------------------------------------------===//
2-
// Copyright © 2025-2026 Apple Inc. and the container project authors.
2+
// Copyright © 2026 Apple Inc. and the container project authors.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.
@@ -75,4 +75,3 @@ public struct FileLogHandler: LogHandler {
7575
case openFailed
7676
}
7777
}
78-

Sources/ContainerLog/ServiceLogger.swift

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1+
//===----------------------------------------------------------------------===//
2+
// Copyright © 2026 Apple Inc. and the container project authors.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// https://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
//===----------------------------------------------------------------------===//
16+
117
import Logging
218
import SystemPackage
319

420
/// Common logging setup for application services.
521
public struct ServiceLogger {
6-
/// Create a logger
22+
/// Create a logger
723
public static func bootstrap(
824
category: String,
925
label: String = "com.apple.container",
10-
metadata: [String:String] = [:],
26+
metadata: [String: String] = [:],
1127
debug: Bool,
1228
logPath: FilePath?
1329
) -> Logger {
@@ -29,4 +45,4 @@ public struct ServiceLogger {
2945
}
3046
return log
3147
}
32-
}
48+
}

Sources/ContainerPlugin/LogRoot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//===----------------------------------------------------------------------===//
2-
// Copyright © 2025-2026 Apple Inc. and the container project authors.
2+
// Copyright © 2026 Apple Inc. and the container project authors.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.

Sources/ContainerPlugin/PluginLoader.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ extension PluginLoader {
228228
env[ApplicationRoot.environmentName] = appRoot.path(percentEncoded: false)
229229
env[InstallRoot.environmentName] = installRoot.path(percentEncoded: false)
230230
if let logRoot {
231-
env[LogRoot.environmentName] = logRoot.isAbsolute
231+
env[LogRoot.environmentName] =
232+
logRoot.isAbsolute
232233
? logRoot.string
233234
: FilePath(FileManager.default.currentDirectoryPath).appending(logRoot.components).string
234235
}

Sources/Helpers/NetworkVmnet/NetworkVmnetHelper+Start.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import ArgumentParser
1818
import ContainerLog
1919
import ContainerNetworkService
2020
import ContainerNetworkServiceClient
21-
import ContainerResource
2221
import ContainerPlugin
22+
import ContainerResource
2323
import ContainerXPC
2424
import ContainerizationError
2525
import ContainerizationExtras

Tests/CLITests/Subcommands/System/TestCLIStatus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//===----------------------------------------------------------------------===//
2-
// Copyright © 2025-2026 Apple Inc. and the container project authors.
2+
// Copyright © 2026 Apple Inc. and the container project authors.
33
//
44
// Licensed under the Apache License, Version 2.0 (the "License");
55
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)