fxn
(Xavier Noria)
1
Hi! I am learning the language itself, but I am not yet familiar with the tooling.
I would like to use this library to talk to a Phoenix application using an executable.
First, is it possible to use a something like that in a simple script foo.swift run as
swift foo.swift
? Or do I need to work on something with tooling support like a project generated by swift package init --type executable?
There has been some discussion recently about adding the ability to declare a dependency inside a script like this, but for now your best bet is to use SPM as you have described
2 Likes