Qi Xiao
0fd916c418
Document the &max option of str:split.
2021-10-23 13:19:14 +01:00
Qi Xiao
f6a3411d58
website/ref: Be more correct in when Elvish runs interactively or scripts.
2021-10-23 13:14:24 +01:00
Qi Xiao
a25809893e
Clean up flags
...
- Remove the now defunct -web and -port flags.
- Document that -json also works with -compileonly.
2021-10-23 13:04:26 +01:00
Qi Xiao
b42cfaea61
Remove references to ~/.elvish in documentation.
...
This fixes #1399 .
2021-10-23 12:16:50 +01:00
Qi Xiao
4e93132fec
website/get: "latest release" -> "latest packaged release" in package manager instructions.
2021-10-22 18:00:46 +01:00
Qi Xiao
ca4a94112c
Fix markdown format
2021-10-22 17:59:11 +01:00
Rashil Gandhi
ac37bd57d4
Include hyperlink for manifest in bucket
2021-10-22 17:59:11 +01:00
Rashil Gandhi
1e4e6cc007
Add usage instructions for Windows
2021-10-22 17:59:11 +01:00
Qi Xiao
a91852b0a7
Fix tests broken by last commit.
2021-10-22 17:44:57 +01:00
Qi Xiao
fc66ad1d10
pkg/eval/vals: Remove support for the legacy a:b slice syntax.
...
This syntax was deprecated in 0.15.0 and no longer documented since then.
2021-10-22 17:41:09 +01:00
Qi Xiao
b12c29fb53
pkg/eval: Remove unnecessary methods of *Ns and *staticNs.
2021-10-16 12:50:45 +01:00
Qi Xiao
6822e2ca7b
Deprecate the local: and up: special namespaces in 0.17.
...
Also deprecate the use of a leading empty namespace.
This addresses #1409 .
2021-10-15 22:45:02 +01:00
Qi Xiao
4b218d9859
Deprecate the legacy lambda syntax from 0.17.x.
...
This addresses #664 .
2021-10-14 23:10:29 +01:00
Qi Xiao
6a92571a23
Check assignments to read-only variable during compilation.
2021-10-13 23:57:14 +01:00
Qi Xiao
20e98c7479
Support new lambda syntax { |arg &opt=default| body }.
...
This addresses #664 .
2021-10-13 22:47:16 +01:00
Qi Xiao
569d73c270
Deprecate the legacy assignment form from 0.17.0.
...
This addresses #645 .
2021-10-12 23:25:45 +01:00
Qi Xiao
b860f1b037
website/ref: Fix spelling of $edit:-prompt-eagerness
2021-10-12 21:37:58 +01:00
Qi Xiao
6a7d99041d
pkg/eval: Require the variable used in "set" to already exist.
...
This has always been the documented behavior, but up until this point, "set"
actually behaved like the legacy assignment form, which creates the variable if
it doesn't exist yet.
This fixes the discrepancy. Addresses #645 .
2021-10-10 14:31:09 +01:00
Qi Xiao
7446c60af4
check_website.yml: Check cdg.elv.sh and hkg.elv.sh
...
The latter will be used later to be the APAC backend for elv.sh, and is now
building website on each commit.
2021-10-09 23:53:19 +01:00
Qi Xiao
d5f662485d
Update website checking script.
...
- Add sleep between checks
- Add output when check succeeds
2021-10-09 22:57:04 +01:00
Qi Xiao
973752cf5a
Add GitHub Action to check website is updated within 30 minutes.
2021-10-09 22:54:30 +01:00
Qi Xiao
862cf5619d
Support turning off implicit external command resolution.
...
See documentation in website/ref/language.html.
This fixes #978 .
2021-10-07 01:21:28 +01:00
Qi Xiao
c37d891724
README: Merge the two Cirrus CI badges.
2021-10-05 20:45:17 +01:00
Qi Xiao
5b490475e7
pkg/testutil: ScaledMs -> Scaled, takes a time.Duration instead.
2021-10-05 01:02:54 +01:00
Qi Xiao
e299010be8
pkg/eval: Export the config fields and remove access methods.
2021-10-05 00:53:38 +01:00
Qi Xiao
fc754f6822
pkg/eval: Deliver message for finished bg job using editor notification.
...
This fixes #1067 .
2021-10-05 00:08:14 +01:00
Qi Xiao
e70216421f
pkg/eval: Remove more unnecessary mutex guards.
2021-10-04 23:27:06 +01:00
Qi Xiao
4062de64fb
Document that using &key=value without whitespace might be unsupported in future.
...
This addresses #1152 .
2021-10-04 13:07:45 +01:00
Qi Xiao
cfaa1ed639
Fix build on Windows
2021-10-04 00:26:48 +01:00
Qi Xiao
6eae543ecf
pkg/eval: Remove unnecessary mutex guards.
2021-10-03 23:57:26 +01:00
Qi Xiao
1f362db665
pkg/eval: Add before-exit hook for daemon cleanup.
...
The daemon client in the Evaler is now only used by the dir-history builtin
command and can be removed when it is removed.
2021-10-03 23:16:20 +01:00
Qi Xiao
56038311da
pkg/eval: Remove elvdoc for the removed path-* commands.
2021-10-03 23:03:52 +01:00
Qi Xiao
7e526534cd
pkg/eval: Remove Eval.libInstallDir; it's not used anywhere.
2021-10-03 23:01:26 +01:00
Qi Xiao
64b52d08aa
pkg/edit: Correct the elvdoc for edit:notify.
2021-10-03 22:58:45 +01:00
Qi Xiao
c6d9ebc389
Add special command "coalesce".
...
This fixes #1404 .
2021-10-03 19:14:44 +01:00
Qi Xiao
643ece6347
Document that & requires no whitespace to start a key-value pair or command option.
...
This fixes #1152 .
2021-10-03 18:44:41 +01:00
Qi Xiao
0571db69e2
Remove commands deprecated in 0.16.0, and deprecate dir-history.
2021-10-03 16:47:51 +01:00
Qi Xiao
2e6a3abce5
Expose all functionalities of the persistent store in the store: module.
...
This fixes #1032 .
2021-10-03 16:34:52 +01:00
Qi Xiao
68168da9fc
pkg/eval: Convert elements of slice return value from a GoFn to individual outputs.
2021-10-03 16:34:52 +01:00
Qi Xiao
b17e5bd1ad
pkg/shell: Remove an unnecessary import rename.
2021-10-03 14:47:22 +01:00
Qi Xiao
cd62d565ab
pkg/eval: Small test coverage improvements.
2021-10-03 01:54:07 +01:00
Qi Xiao
3526f0284e
pkg/eval: Increase coverage of builtin_fn_flow_test.go.
2021-10-03 01:09:08 +01:00
Qi Xiao
3f418dfd5c
pkg/cli/term: Fix test on Windows.
2021-10-03 00:35:32 +01:00
Qi Xiao
00c26410cc
pkg/cli/term: Increase coverage of buffer.go and reader.go.
2021-10-03 00:29:55 +01:00
Qi Xiao
0219b99add
pkg/cli/term: More tests for convertEvent in reader_windows.go.
2021-10-03 00:03:02 +01:00
Qi Xiao
3172a259b9
Fix cmd/examples/win_tty
2021-10-02 22:44:54 +01:00
Qi Xiao
7961cf2d7a
pkg/cli/term: Add very basic tests against reader_windows.go.
...
We can't test actual console events, but at least we can test the
convertEvent function.
2021-10-02 22:38:02 +01:00
Qi Xiao
3585d933b8
pkg/sys/ewindows: Remove the _windows suffix from most files.
...
All the files in this package are Windows-specific. Use build
constraints to ensure that they don't build on other platforms instead.
2021-10-02 22:38:02 +01:00
Qi Xiao
bfb9986339
pkg/daemon: Fix activate_unix_test.go.
2021-10-02 19:04:36 +01:00
Qi Xiao
eadb0c3283
pkg/daemon: Only test the code to interrupt old daemon on UNIX.
...
Windows does not support sending interrupts to processes without
consoles.
2021-10-02 19:02:28 +01:00