1// SPDX-FileCopyrightText: 2025 The Project Pterodactyl Developers 2// 3// SPDX-License-Identifier: MPL-2.0 4 5import Foundation 6import TSCBasic 7import llbuild2fx 8 9struct UnitName: Codable, Equatable, Hashable { 10 var basename: String 11} 12 13extension UnitName: FXValue {} 14 15extension UnitName { 16 static func fromPath(_ path: AbsolutePath) -> Self { 17 Self(basename: path.basenameWithoutExt) 18 } 19}