yonaskolb / Beak

A command line interface for your Swift scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add edit command

yonaskolb opened this issue · comments

beak edit
This would allow code completion for dependencies.

  • generate package like for run but without injected function call, rather use a symlink to the original swift file
  • generate the project with Swift PM
  • open the project

Looks like Xcode doesn't support saving files that are symlinked... 😢
That means the edit command will have to print something like

Edit the file "Sources/BeakFile/main.swift". When you're done press return and the file will be copied back