lit icon indicating copy to clipboard operation
lit copied to clipboard

lit run - invalid command: run

Open ghost opened this issue 10 years ago • 3 comments

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...

ghost avatar Nov 20 '15 15:11 ghost

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

squeek502 avatar Nov 20 '15 16:11 squeek502

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.

ghost avatar Nov 20 '15 16:11 ghost

@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.

creationix avatar Nov 22 '15 02:11 creationix