Skip to content

Roost 2.1.3

Choose a tag to compare

@Maartz Maartz released this 08 Oct 14:08
· 31 commits to main since this release

roost spectro can show Spectro's colors, spinners, and styled tables again.

  • Roost has a RichTerminal trait that turns on Spectro's. Apps opt in on their
    swift-roost dependency:

    .package(url: "https://github.com/roost-framework/swift-roost", from: "2.1.3",
             traits: [.defaults, "RichTerminal"])

    Apps created by roost-cli 2.1.1 or later include it. Without it, an app
    downloads no Noora and roost spectro prints plain text, as in 2.1.2.

  • The trait is off by default because SwiftPM 6.4 can't resolve a dependency
    trait that a non-root package turns on through its own default traits: every
    app depending on Roost would fail with "exhausted attempts to resolve the
    dependencies graph".

  • An app that added Spectro as a direct dependency to get the richer output can
    drop that dependency and use the trait.

Upgrade

Update swift-roost before adding the trait to an existing app. SwiftPM checks
traits against the version an app already resolved, and releases before 2.1.3
declare none, so adding the trait first fails with "enables traits
[RichTerminal, default] on package 'swift-roost' that declares no traits":

swift package update swift-roost   # with the old dependency line
# then add traits: [.defaults, "RichTerminal"] and run:
swift package resolve