feat(terminal): make uploads free and add native upload menus

This commit is contained in:
Kaede Akino committed 2026-10-02 08:27:20 +08:00
1 parent 8777169276
commit d4323176ed
23 files changed
+545 -608

No files matched your search

@@ -7,7 +7,7 @@ public nonisolated enum RemoteShellCommand {
/// backslash followed by a newline would remove both characters.
public static func escapeArgument(_ value: String) -> String {
guard !value.isEmpty else { return "''" }
if value.contains("\n") || value.contains("\r") {
if value.unicodeScalars.contains(where: { $0.value == 0x0A || $0.value == 0x0D }) {
return "'\(value.replacingOccurrences(of: "'", with: "'\"'\"'"))'"
}
var escaped = ""