Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/hop/blob/main/tests/RemoteIndexChecks.swift # hop Hop: a small native macOS launcher. Clipboard history, find, on-device dictation and your coding agent behind one key. Brought by drakestapleton Sign in to star 1 stars 1 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `hop / tests / RemoteIndexChecks.swift` 11 lines ยท 500 bytes Raw Blame History 1 // Prints, quoted for sh, the file-list rebuild command for the roots given (for tools/check-index-rebuild.sh). 2 import Foundation 3 4 @main 5 struct RemoteIndexChecks { 6 static func quote(_ s: String) -> String { "'" + s.replacingOccurrences(of: "'", with: "'\\''") + "'" } 7 static func main() { 8 let roots = CommandLine.arguments.dropFirst().map(quote).joined(separator: " ") 9 print(quote(RemoteIndex.build(roots: roots, prune: "-name " + quote("node_modules"), shards: 20))) 10 } 11 }