nushell/crates/nu-command/src/core_commands
Justin Ma 38fc42d352
Fix const examples (#7610)
# Description

Fix const examples

# Tests + Formatting

Don't forget to add tests that cover your changes.

Make sure you've run and fixed any issues with these commands:

- `cargo fmt --all -- --check` to check standard code formatting (`cargo
fmt --all` applies these changes)
- `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- `cargo test --workspace` to check that all tests pass
2022-12-27 15:44:03 +08:00
..
overlay Add extra_usage messages for subcommand-only commands (#7594) 2022-12-24 07:16:29 -06:00
alias.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
ast.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
break_.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
commandline.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
const_.rs Fix const examples (#7610) 2022-12-27 15:44:03 +08:00
continue_.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
debug.rs Standardise the use of ShellError::UnsupportedInput and ShellError::TypeMismatch and add spans to every instance of the former (#7217) 2022-12-23 01:48:53 -05:00
def.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
def_env.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
describe.rs Declare input and output types of commands (#6796) 2022-11-10 10:55:05 +13:00
do_.rs Add example showing first class closure to do (#7473) 2022-12-14 20:55:00 +01:00
echo.rs Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
error_make.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
export.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
export_alias.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
export_def.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
export_def_env.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
export_extern.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
export_use.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
extern_.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
for_.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
help.rs color_config now accepts closures as color values (#7141) 2022-12-17 07:07:56 -06:00
help_operators.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00
hide.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
hide_env.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
if_.rs Add OneOf shape to fix else (#7385) 2022-12-08 08:58:54 +13:00
ignore.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
let_.rs Initial support for parse-time constants (#7436) 2022-12-22 00:21:03 +02:00
loop_.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
metadata.rs Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
mod.rs Initial support for parse-time constants (#7436) 2022-12-22 00:21:03 +02:00
module.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
mut_.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
register.rs Improve empty pipelines (#7383) 2022-12-08 07:31:57 +13:00
return_.rs New commands: break, continue, return, and loop (#7230) 2022-11-25 09:39:16 +13:00
try_.rs Make $in work in catch closures (#7458) 2022-12-22 09:35:41 -06:00
use_.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") (#7592) 2022-12-24 10:25:38 +01:00
version.rs Reduced LOC by replacing several instances of Value::Int {}, Value::Float{}, Value::Bool {}, and Value::String {} with Value::int(), Value::float(), Value::boolean() and Value::string() (#7412) 2022-12-09 11:37:51 -05:00
while_.rs Add more input/output type annotations (#7532) 2022-12-21 20:20:46 +01:00