Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 462 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 462 Bytes

使用方式:

  1. 在终端里切换到 index.js 文件所在目录
  2. 保存: node index.js save [path]
  3. 加载: node index.js load [path]
  4. 注: path 不传默认为 ./tmp.swift

Swift 命令行模式运行

  1. 终端输入 swift 进入命令行模式, :q 或者 :quit 退出
  2. swift [path] 当做脚本直接运行, 相比 Xcode 或 Playground 速度快很多, 不用再忍受 Xcode 卡死的痛苦

TODO

  • node.js 脚本替换为纯 swift 脚本