elvish/pkg/eval
Qi Xiao 47d9766f5c Control deprecation warnings with a number instead of a bool.
Previously, to avoid showing deprecation warnings for the next release when the
user is running on HEAD, a boolean CLI flag -show-deprecations is introduced,
and is set to false in the master branch. The idea is that release branches will
have this default to true, so people running released versions will see
deprecations.

However, this means that people running on HEAD will never see any deprecations
unless they use this CLI flag, which is not ideal. This commit replaces the flag
bool -show-deprecations with a numerical -deprecation-level flag, which requests
deprecations that are active as of release 0.X to be shown. The default value of
this flag will be the minor version number of the *last* release, so that people
running HEAD will see as many deprecation warnings as people running the last
release would. This number will be bumped just before releases.
2021-01-19 21:37:36 +00:00
..
errs pkg/eval/errs: Change OutOfRange.Valid{Low High} to strings. 2020-08-18 21:23:26 +01:00
evaltest pkg/eval/evaltest: Support testing evaluation of multiple code pieces. 2021-01-10 00:08:58 +00:00
mods Fix typo in description of path:is-regular 2021-01-17 04:56:59 +00:00
vals pkg/eval: Update comments about the Elvish-Go interface. 2021-01-05 05:23:28 +00:00
vars pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
args_walker.go pkg/parse: Turn most public methods of Node into functions. 2020-04-25 18:55:44 +01:00
benchmarks_test.go pkg/eval: Clean up the structure and methods of Evaler and Frame. 2021-01-05 00:22:09 +00:00
builtin_fn_cmd_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
builtin_fn_cmd_unix_test.go pkg/eval/evaltest: Consolidate all the Throws* methods into one. 2020-09-04 20:31:47 +01:00
builtin_fn_cmd_unix.go pkg/eval: Make Exception an interface. 2021-01-08 00:56:45 +00:00
builtin_fn_cmd_windows.go Change signature of "exec" and "fg" on Windows to match that on Unix. 2020-12-26 22:59:18 +00:00
builtin_fn_cmd.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
builtin_fn_container_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_container.go Implement namespaces using slices instead of maps. 2020-12-25 17:46:46 +00:00
builtin_fn_debug.go pkg/eval: Use exported methods to access ports from builtin functions. 2020-10-10 22:28:13 +01:00
builtin_fn_env_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_env.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
builtin_fn_flow_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_flow.go Make all builtin functions and subnamespaces read-only. 2021-01-09 00:41:42 +00:00
builtin_fn_fs_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
builtin_fn_fs.go Introduce the path: module (#1203) 2021-01-16 23:21:33 +00:00
builtin_fn_io_test.go Fix typo: interprete -> interpret 2021-01-11 12:00:55 +00:00
builtin_fn_io.go Document %% in the elvdoc of printf. 2021-01-11 21:49:11 +00:00
builtin_fn_misc_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_misc_unix_test.go Deflake the test against "sleep" by delaying the SIGINT slightly. 2021-01-02 01:49:40 +00:00
builtin_fn_misc.go Fix the elvdoc of -source. 2021-01-10 17:08:59 +00:00
builtin_fn_num_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_num.go pkg/eval: Clean up the structure and methods of Evaler and Frame. 2021-01-05 00:22:09 +00:00
builtin_fn_pred_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_pred.go pkg/eval: Update doc of the "not" command. 2020-12-25 17:46:09 +00:00
builtin_fn_str_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
builtin_fn_str.go pkg/eval: Use exported methods to access ports from builtin functions. 2020-10-10 22:28:13 +01:00
builtin_fn_styled_test.go In prompts implicitly coerce float64 to string 2020-12-25 17:34:49 +00:00
builtin_fn_styled.go Trivial documentation consistency change 2020-12-25 17:43:32 +00:00
builtin_ns.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
builtin_special_test.go Control deprecation warnings with a number instead of a bool. 2021-01-19 21:37:36 +00:00
builtin_special.go pkg/eval: Allow "var a:". 2021-01-17 01:17:35 +00:00
callable.go pkg/eval: Break up value.go. 2020-10-10 22:28:13 +01:00
chdir_test.go Improve navigation mode corner cases 2020-11-07 13:17:00 -05:00
closure_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
closure.go Introduce edit:add-var and edit:add-vars. 2021-01-17 01:33:25 +00:00
compile_effect_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
compile_effect_unix_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
compile_effect.go Introduce "var" and "set". 2021-01-16 06:11:37 +00:00
compile_lvalue.go Introduce "var" and "set". 2021-01-16 06:11:37 +00:00
compile_value_test.go pkg/eval: Split test functions. 2021-01-10 16:43:21 +00:00
compile_value.go Control deprecation warnings with a number instead of a bool. 2021-01-19 21:37:36 +00:00
compiler.go Introduce edit:add-var and edit:add-vars. 2021-01-17 01:33:25 +00:00
deprecation.go pkg/eval: Add mutex to Evaler, and remove that of deprecationRegistry. 2021-01-04 15:55:26 +00:00
eval_test.go Control deprecation warnings with a number instead of a bool. 2021-01-19 21:37:36 +00:00
eval.go pkg/eval: Fix handling of the global scope in (*Evaler).Eval. 2021-01-17 00:36:18 +00:00
exception_test.go pkg/eval: Make Exception an interface. 2021-01-08 00:56:45 +00:00
exception_unix_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
exception.go pkg/eval: Make Exception an interface. 2021-01-08 00:56:45 +00:00
external_cmd_test.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
external_cmd_unix_test.go pkg/eval: Move EachExternal to the fsutil package. 2020-09-04 22:04:20 +01:00
external_cmd_windows_test.go pkg/eval: Move test framework into new evaltest package. 2020-09-03 06:51:21 +01:00
external_cmd.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
frame.go Control deprecation warnings with a number instead of a bool. 2021-01-19 21:37:36 +00:00
glob_test.go pkg/eval/evaltest: Move Must* functions to the testutil package. 2020-09-04 21:57:20 +01:00
glob.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
go_fn_test.go pkg/eval: De-export GoFn. 2020-09-04 22:30:42 +01:00
go_fn.go pkg/eval: Update comments about the Elvish-Go interface. 2021-01-05 05:23:28 +00:00
interrupts.go pkg/eval: Remove (*Evaler).EvalInTTY. 2020-04-16 00:11:23 +01:00
must.go pkg: Fix small issues found by staticcheck. 2020-04-13 13:56:10 +01:00
ns_test.go Make all builtin functions and subnamespaces read-only. 2021-01-09 00:41:42 +00:00
ns.go pkg/eval: Store variable deletion information in *Ns. 2021-01-10 00:54:02 +00:00
options_test.go Increase options.go coverage to 100% 2020-08-26 20:40:22 +01:00
options.go pkg/eval: Update comments about the Elvish-Go interface. 2021-01-05 05:23:28 +00:00
port_helper_test.go pkg/eval: Clean up the structure and methods of Evaler and Frame. 2021-01-05 00:22:09 +00:00
port.go pkg/eval: Clean up Port related code. 2021-01-05 05:23:17 +00:00
process_unix.go
process_windows.go
purely_eval_test.go pkg/eval: Return bool instead error from (*Evaler)'s PurelyEval* methods. 2021-01-09 16:05:04 +00:00
purely_eval.go pkg/eval: Return bool instead error from (*Evaler)'s PurelyEval* methods. 2021-01-09 16:05:04 +00:00
pwd_test.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
pwd.go pkg/eval: Cleanups for reducing the API surface area number of files. 2021-01-05 04:33:52 +00:00
value_test.go pkg/eval: Make Exception an interface. 2021-01-08 00:56:45 +00:00
var_parse_test.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00
var_parse.go pkg/eval: Various cleanups for qname handling code. 2020-12-25 22:31:52 +00:00
var_ref.go Control deprecation warnings with a number instead of a bool. 2021-01-19 21:37:36 +00:00