nushell/crates/nu-cmd-lang/src/core_commands
Bahex 5be818b5ee
make echo const (#14997)
# Description

Make `echo` const.
- It's a very simple command, there is no reason for it to not be const.
- It's return type `any` is utilized in tests to type erase values, this
might be useful for testing const evaluation too.
- The upcoming custom command attribute feature can make use of it as a
stopgap replacement for `const def` commands.

# User-Facing Changes

`echo` can be used in const contexts.

# Tests + Formatting

# After Submitting
N/A
2025-02-06 06:56:30 -06:00
..
overlay Enable conditional source and use patterns by allowing null as a no-op module (#14773) 2025-01-09 06:37:27 -06:00
scope Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
alias.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
break_.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
collect.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
const_.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
continue_.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
def.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
describe.rs Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00
do_.rs Refactor I/O Errors (#14927) 2025-01-28 16:03:31 -06:00
echo.rs make echo const (#14997) 2025-02-06 06:56:30 -06:00
error_make.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export_alias.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export_const.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export_def.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export_extern.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export_module.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export_use.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
export.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
extern_.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
for_.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
hide_env.rs Add search terms for hide and hide-env (#15017) 2025-02-05 23:33:49 -05:00
hide.rs Add search terms for hide and hide-env (#15017) 2025-02-05 23:33:49 -05:00
if_.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
ignore.rs Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00
let_.rs Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00
loop_.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
match_.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00
mod.rs Remove lazy records (#12682) 2024-05-03 08:36:10 +08:00
module.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
mut_.rs Fix try not working with let, etc. (#13885) 2024-09-23 06:44:25 -05:00
return_.rs Change the usage misnomer to "description" (#13598) 2024-08-22 12:02:08 +02:00
try_.rs Add label rendering to try/catch rendered errors (#14477) 2024-11-29 19:02:26 -06:00
use_.rs Enable conditional source and use patterns by allowing null as a no-op module (#14773) 2025-01-09 06:37:27 -06:00
version.rs Start to Add WASM Support Again (#14418) 2024-11-30 07:57:11 -06:00
while_.rs Error on non-zero exit statuses (#13515) 2024-09-07 06:44:26 +00:00