Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Add support for files without extensions, also for files not named main.swift #21

Open
Danappelxx opened this issue Oct 7, 2015 · 0 comments
Milestone

Comments

@Danappelxx
Copy link

For example, if I were to create a file called main.swift and fill it with:

#!/usr/local/bin/apous
print("Hello, World!")

then executing the following:

$ chmod +x main.swift
$ ./main.swift

Would simply output

Hello, World!

However, if I were to rename it to just main, or main1.swift, it starts throwing errors:

$ ./main
<unknown>:0: error: no input files
$ ./main1.swift
Only a 'main.swift' file can be specified.

If I wanted to, for example, have a build script created through apous, calling the file main.swift would be sort of ridiculous, setup or install makes much more sense.

Just a few thoughts - I really like apous either way 👍

@owensd owensd added this to the v0.3.0 milestone Oct 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants