Commit Graph

102 Commits

Author SHA1 Message Date
Qi Xiao
a418b05875 New title and description.
Elvish is now a cross-platform shell instead of an UNIX shell, yay \o/
2017-12-31 21:25:20 +00:00
Qi Xiao
310cde86b9 Fix main, and make sure Travis tests main as well. 2017-12-08 00:39:55 +00:00
Qi Xiao
37362c602e program: Use a FlagSet for easier testing. 2017-12-07 23:55:33 +00:00
Qi Xiao
79dc756ee5 Moving packages around.
Logics of the main package is now in program/. Subprograms are subpackages of
program/. For instance, daemon/ is now program/daemon.

The daemon/service package is now simply daemon/.

The version string has been moved into its own package, build/.
2017-12-04 21:08:45 +01:00
Qi Xiao
f953ed9887 main: The daemon sub-program now logs its -forked value on error. 2017-12-04 20:12:46 +01:00
Qi Xiao
1b6cee7045 main: Fix build on Windows. 2017-12-03 22:31:15 +01:00
Qi Xiao
d103a97e4e daemon/*: Comment and cleanup. 2017-11-11 16:08:45 +00:00
zhsj
0b72aa95ca Add -version (#488)
People install with go get, will show version unknown
But if they install from prebuilt, make get, they will
known their version

Closes: #279

Signed-off-by: Shengjing Zhu <i@zhsj.me>
2017-09-21 20:12:21 +01:00
Adam Schwalm
c30495cba4 Add a 'compileonly' option (#458) 2017-07-25 22:48:45 +02:00
Qi Xiao
013410db16 Notify user of db upgrade. 2017-07-20 00:51:42 +02:00
Tw
18d408935b Fix rpc client leakage. (#434)
Signed-off-by: Tw <tw19881113@gmail.com>
2017-07-13 10:50:52 +01:00
Qi Xiao
cf08dc3ea7 Add a re: module for regular expression utilities. 2017-07-02 22:57:56 +01:00
Qi Xiao
0ae4f434e2 Wait for daemon to come up; exit daemon gracefully. 2017-06-20 16:09:07 +02:00
Qi Xiao
d5038c2be5 Put socket and daemon logs in /tmp/elvish-$uid. 2017-06-20 12:31:38 +02:00
Qi Xiao
24c56a40c4 Move definitions in store/ to store/storedefs.
Now only the daemon/service depends on store/.
2017-06-20 02:57:45 +02:00
Qi Xiao
51b1db5d1d Remove shell and web's dependency on store. 2017-06-20 02:35:11 +02:00
Qi Xiao
7088faca01 Reorganize daemon client. 2017-06-19 23:44:44 +02:00
Qi Xiao
adcb4d1ff4 Kill outdated daemon on startup. 2017-06-19 22:10:23 +02:00
Qi Xiao
d527a96e03 Make elvish reconnect to daemon automatically. 2017-06-19 16:53:53 +02:00
Qi Xiao
b658f8edae Daemon now writes log to a file ending with PID. 2017-06-19 16:41:34 +02:00
Qi Xiao
08ed8eaf65 Add a daemon:spawn command. 2017-06-19 16:29:57 +02:00
Qi Xiao
601e02656b Reorganize. 2017-06-19 14:55:21 +02:00
Qi Xiao
3357da8db6 Reorganize, get rid of daemon.Daemon. 2017-06-19 14:29:18 +02:00
Qi Xiao
1c82c8a929 Add a daemon: namespace. 2017-06-19 12:59:19 +02:00
Qi Xiao
788964b605 Start up daemon when socket has no listener.
Some simple services have been implemented as well.
2017-06-19 12:59:19 +02:00
Qi Xiao
a4631ef208 Add a web frontend that currently doesn't actually execute code. 2017-05-29 00:54:34 +01:00
Qi Xiao
03b66875a9 Reorganize to prepare for adding web interface. 2017-05-28 17:59:50 +01:00
Qi Xiao
f8b9be9ebf Require -log for daemon, handle SIGTERM, and add a GetPid request. 2017-02-28 14:15:22 +00:00
Qi Xiao
605e6683fd Add daemon. 2017-02-28 03:44:30 +00:00
Qi Xiao
b174b990ed Let the main package handle flags. 2017-02-28 02:03:22 +00:00
Qi Xiao
a880b74a1b Put the actual entry function in a new run package.
This allows us to test the entry function.
2016-02-21 12:52:47 +01:00
Qi Xiao
7f42872347 More cleanup. 2016-02-21 12:10:03 +01:00
Qi Xiao
36d17550cb Rearrange main.go a bit. 2016-02-21 12:00:02 +01:00
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