Skip to content

Commit

Permalink
Sponsor plug
Browse files Browse the repository at this point in the history
  • Loading branch information
ileitch committed Dec 19, 2024
1 parent 9e5505e commit fd2da1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .mise/tasks/scan
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -euo pipefail

swift build
time ./.build/debug/periphery scan "$@"
./.build/debug/periphery scan "$@"
6 changes: 4 additions & 2 deletions Sources/Frontend/UpdateChecker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ final class UpdateChecker {

guard latestVersion.isVersion(greaterThan: PeripheryVersion) else { return }

logger.info(colorize("\n* Update Available", .boldGreen))
logger.info(colorize("\nUpdate Available!", .boldGreen))
let boldLatestVersion = colorize(latestVersion, .bold)
let boldLocalVersion = colorize(PeripheryVersion, .bold)
logger.info("Version \(boldLatestVersion) is now available, you are using version \(boldLocalVersion).")
logger.info("Release notes: https://github.com/peripheryapp/periphery/releases/tag/\(latestVersion)")
logger.info("Release notes: " + colorize("https://github.com/peripheryapp/periphery/releases/tag/\(latestVersion)", .bold))
let boldOption = colorize("--disable-update-check", .bold)
let boldScan = colorize("scan", .bold)
logger.info("To disable update checks pass the \(boldOption) option to the \(boldScan) command.")

logger.info(colorize("\nIf you are enjoying Periphery, please consider becoming a sponsor.", .bold) + "\nYour support helps ensure the continued development of new features and updates to support new Swift versions.\n" + colorize("https://github.com/sponsors/peripheryapp", .boldMagenta))
}

func wait() -> Result<String, PeripheryError> {
Expand Down

0 comments on commit fd2da1a

Please sign in to comment.