Commit Graph

69 Commits

Author SHA1 Message Date
Qi Xiao
56fae84255 Capitalize elvish in docstring of main.go. 2016-02-20 22:51:55 +01:00
Qi Xiao
098965cfac Also close the database.
Doesn't help with #147 though.
2016-02-20 02:27:26 +01:00
Qi Xiao
7efeb9c56f Remove ContextualError. 2016-02-19 17:46:21 +01:00
Qi Xiao
5db90fd20f Merge *util packages into an util package. 2016-02-16 19:15:29 +01:00
Qi Xiao
1c40246c22 Print the panic cause in the global recovery function. 2016-02-14 20:06:34 +01:00
Qi Xiao
d377d89dcb Fix logger prefixes. 2016-02-13 21:40:54 +01:00
Qi Xiao
8e728ef076 Allow setting log file at runtime. 2016-02-13 21:05:35 +01:00
Qi Xiao
56490fcd31 Support overriding the database file. 2016-02-13 00:35:33 +01:00
Qi Xiao
00b2f372bc Use basic readline when stdin is not tty or editor errored.
This fixes #78.
2016-02-11 19:32:40 +01:00
Qi Xiao
d41b8d8605 Really quit on SIGQUIT. 2016-02-10 21:49:39 +01:00
Qi Xiao
7578b4cf63 Quit on SIGQUIT. 2016-02-10 21:48:08 +01:00
Shengjing Zhu
b526a592f3 Initial editor beforce load rc.elv
Now we can define bind in rc.elv
2016-02-10 03:15:47 +08:00
Qi Xiao
431e5b5fd7 Put go dumpstackOnQuit() in main. 2016-02-09 18:39:24 +01:00
Qi Xiao
9bb9afb251 Improve signal handling. 2016-02-09 18:38:26 +01:00
Qi Xiao
aa441ae0e7 eval: Make handling of ports in Eval explicit. 2016-02-08 18:51:06 +01:00
Qi Xiao
9e40b129e1 Implement basic wildcard.
Implicit concat in compounds is much more strict now.
2016-02-07 20:39:03 +01:00
Qi Xiao
42d95df082 main.go: Fix recover() 2016-02-05 23:16:28 +00:00
Qi Xiao
5c8a8d5eec Make parse report all errors. 2016-02-06 00:08:39 +01:00
Qi Xiao
be1df5ffc3 add a -debuglog flag 2016-02-05 22:12:05 +01:00
Qi Xiao
51df7b1263 main.go: reorder to top-down 2016-02-05 20:16:22 +01:00
Qi Xiao
67c2687a07 sys.DumpStack now returns a string 2016-02-03 02:50:15 +01:00
Qi Xiao
2823ffb540 more elaborate signal handling 2016-02-03 02:19:09 +01:00
Qi Xiao
c1b7701a68 combine Error and error into an error in eval functions 2016-01-31 01:40:49 +01:00
Qi Xiao
82e027e435 Exitus -> Error 2016-01-30 17:11:43 +01:00
Qi Xiao
a3c2bf37d8 eval: NewEvaler no longer takes dataDir 2016-01-29 14:01:51 +01:00
Qi Xiao
1a490de6fd sysutil -> osutil; add package doc 2016-01-29 03:04:31 +01:00
Qi Xiao
b0568168e8 exitus cleanup 2016-01-28 23:39:20 +01:00
Qi Xiao
0b19995a02 install a global panic handler that exec's /bin/sh 2016-01-28 01:25:17 +01:00
Qi Xiao
7b4db8509b main: always catch signals 2016-01-28 00:22:54 +01:00
Qi Xiao
cca6d75c36 Store a pointer to eval.Evaler in edit.Editor 2016-01-25 22:14:12 +01:00
Qi Xiao
233a8f4b07 parse-ng -> parse 2016-01-24 18:15:21 +01:00
Qi Xiao
aa7ca8eea1 New eval. Currently broken. 2016-01-24 18:13:20 +01:00
Cheer Xiao
6dfa18bf4c Expose eval.HasFailure 2015-07-08 00:13:50 +02:00
Cheer Xiao
f68b0eb1f9 A chunk now stops execution as soon as a failure is encountered. 2015-07-08 00:12:24 +02:00
Cheer Xiao
876b7ac40c Move util/path.go into dedicated sysutil package 2015-02-26 16:50:20 +01:00
Cheer Xiao
f407b94d09 Use persistent history in the editor
This resolves issue #45.
2015-02-26 00:40:35 +01:00
Cheer Xiao
e82e67fd4e Move mutable states of Evaler into evalCtx.
This is work on #47.
2015-02-25 12:21:06 +01:00
Cheer Xiao
9495a6adfa Evaluator -> Evaler 2015-02-25 00:37:18 +01:00
Cheer Xiao
c19a982221 Remove dependency of the editor on the evaluator 2015-02-24 21:31:37 +01:00
Cheer Xiao
1d59566aaf Implement module file search mechanism for "use"
This resolves issue #44.
2015-02-23 18:36:46 +01:00
Cheer Xiao
2a40e1e13b Only catch signals when in the editor 2015-02-10 12:23:25 +01:00
Cheer Xiao
0b46817902 Very minor refactor 2015-02-10 12:22:01 +01:00
Cheer Xiao
948db2db97 Don't evaluate if parsing failed 2015-02-10 12:21:21 +01:00
Cheer Xiao
c23a4e2ece Source ~/.elvish/rc.elv on interact startup.
This resolves issue #42.
2015-02-09 14:01:13 +01:00
Cheer Xiao
fd2e26700a Move error-related utilities from util to errutil 2015-02-09 12:28:36 +01:00
Cheer Xiao
b20b0acf9d Make store.Store part of Evaluator 2015-01-26 16:43:32 +01:00
Cheer Xiao
82f07e1ab1 Cleanup main package 2015-01-22 23:23:29 +01:00
Cheer Xiao
7605eff82f Add a Source method to Evaluator. Simplify the main package. 2015-01-22 23:15:54 +01:00
Cheer Xiao
dd2a47152c Let channel output on terminal use Repr instead of String 2015-01-21 23:55:10 +01:00
Cheer Xiao
d7ca67f3fd Import store package in main.go
This is needed to ensure that dependencies of the store package are installed
with `go get` so that `go test ./store` can be run.
2015-01-21 20:56:52 +01:00