Skip to content

번역

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

ENUM

Template.Attribute

Contents

  • Cases
    • required(_:)
    • optional(_:default:)
swift
public enum Attribute: Codable, Equatable, Sendable

Attribute to be passed to tuist scaffold for generating with Template

Cases

required(_:)

swift
case required(String)

Required attribute with a given name

optional(_:default:)

swift
case optional(String, default: Value)

Optional attribute with a given name and a default value used when attribute not provided by user

Released under the MIT License.