luvit / lit

Toolkit for developing, sharing, and running luvit/lua programs and libraries.
http://lit.luvit.io/
Apache License 2.0
245 stars 58 forks source link

lit run - invalid command: run #141

Open ghost opened 8 years ago

ghost commented 8 years ago

The lit docs suggest to run an app packaged with lit using lit run from the folder containing main.lua. This, however, results in an error:

$ lit run
lit version: 2.2.16
luvi version: v2.4.0
invalid command: run
...
done: success

In addition and to my surprise, lit claims to have been successful, when it clearly was not...

squeek502 commented 8 years ago

lit run no longer exists. To run a lit app without compiling, use luvi like so: luvi . (from the folder containing main.lua). To pass arguments to the process, use luvi . -- args.

See luvi's Readme -> Usage

ghost commented 8 years ago

I fixed the docs: https://github.com/luvit/lit/wiki/Creating-Your-First-Package/_compare/204ac5354deeee8a04161b81234b7ef349cf224f...5fb2560908f50f455bcac348e956701fc8c74001

I still think that lit should not output done: success when the command does not exist.

creationix commented 8 years ago

@urzds thanks for fixing the wiki, I missed that one when the behavior changed early on. @squeek502 thanks for helping out. I'm on vacation for the next while building a shed and have very little computer time.