You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an option to self-update to provide the swiftly version to update (#370)
* Add a hidden option to self-update to provide the swiftly version to update
* Update tests to pass the optional explicit version
* Add a test for self-update to user-specified version
* Add more swift website URL coverage for swiftly releases
await ctx.print("Self-update does not support downgrading to an older version or re-installing the current version. Current version is \(SwiftlyCore.version) and requested version is \(version).")
70
+
returnSwiftlyCore.version
71
+
}
72
+
73
+
await ctx.print("Self-update requested to swiftly version \(version)")
47
74
}
48
75
49
-
vardownloadURL:Foundation.URL?
50
-
forplatformin swiftlyRelease.platforms {
51
-
#if os(macOS)
52
-
guard platform.isDarwin else{
53
-
continue
76
+
if downloadURL ==nil{
77
+
await ctx.print("Checking for swiftly updates...")
0 commit comments