Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cato fails to execute Swift file and shows usage if the script file doesn't have a .swift extension #5

Closed
kylef opened this issue Apr 3, 2015 · 4 comments

Comments

@kylef
Copy link

kylef commented Apr 3, 2015

I think this is right looking at the README:

$ cat test
#!/usr/bin/env cato

import URITemplate

let template = URITemplate(template: "test")
println("\(template)")

$ ./test
Usage: /usr/local/bin/cato [SWIFT-VERSION] SCRIPT

$ cato test
Usage: /usr/local/bin/cato [SWIFT-VERSION] SCRIPT
@neonichu
Copy link
Owner

neonichu commented Apr 3, 2015

Yep, it wants the file to end in .swift, @segiddins complained about the same already :) Will probably change that...

@neonichu neonichu changed the title cato fails to execute Swift file and shows usage cato fails to execute Swift file and shows usage if the script file doesn't have a .swift extension Apr 3, 2015
@kylef
Copy link
Author

kylef commented Apr 3, 2015

@neonichu Yeah, there is not need for my commands to end in the language I run them. We don't do this:

$ pod.ruby
$ cato.bash

@neonichu
Copy link
Owner

neonichu commented Apr 3, 2015

Fixed by a792bda

@neonichu neonichu closed this as completed Apr 3, 2015
@kylef
Copy link
Author

kylef commented Apr 3, 2015

❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants