1
0
mirror of https://github.com/nushell/nushell.git synced 2025-04-13 07:48:19 +02:00
nushell/crates/nu-command/src/core_commands
Leon dd6fe6a04a
Add extra_usage messages for subcommand-only commands ()
# Description

The message reads "You must use one of the following subcommands. Using
this command as-is will only produce this help message." and is added to
commands like `into`, `bytes`, `str`, etc.

# User-Facing Changes

See above.

# 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

# After Submitting

If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io) after the
PR is merged, if necessary. This will help us keep the docs up to date.
2022-12-24 07:16:29 -06:00
..
overlay Add extra_usage messages for subcommand-only commands () 2022-12-24 07:16:29 -06:00
alias.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
ast.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
break_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
commandline.rs Declare input and output types of commands () 2022-11-10 10:55:05 +13:00
const_.rs Initial support for parse-time constants () 2022-12-22 00:21:03 +02:00
continue_.rs New commands: break, continue, return, and loop () 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 () 2022-12-23 01:48:53 -05:00
def_env.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") () 2022-12-24 10:25:38 +01:00
def.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
describe.rs Declare input and output types of commands () 2022-11-10 10:55:05 +13:00
do_.rs Add example showing first class closure to do () 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() () 2022-12-09 11:37:51 -05:00
error_make.rs Add more input/output type annotations () 2022-12-21 20:20:46 +01:00
export_alias.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
export_def_env.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") () 2022-12-24 10:25:38 +01:00
export_def.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") () 2022-12-24 10:25:38 +01:00
export_extern.rs Improve empty pipelines () 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") () 2022-12-24 10:25:38 +01:00
export.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") () 2022-12-24 10:25:38 +01:00
extern_.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
for_.rs Add more input/output type annotations () 2022-12-21 20:20:46 +01:00
help_operators.rs Add more input/output type annotations () 2022-12-21 20:20:46 +01:00
help.rs color_config now accepts closures as color values () 2022-12-17 07:07:56 -06:00
hide_env.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
hide.rs Remove shape-directed import pattern parsing () 2022-12-22 16:36:13 +02:00
if_.rs Add OneOf shape to fix else () 2022-12-08 08:58:54 +13:00
ignore.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
let_.rs Initial support for parse-time constants () 2022-12-22 00:21:03 +02:00
loop_.rs Add more input/output type annotations () 2022-12-21 20:20:46 +01: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() () 2022-12-09 11:37:51 -05:00
mod.rs Initial support for parse-time constants () 2022-12-22 00:21:03 +02:00
module.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") () 2022-12-24 10:25:38 +01:00
mut_.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
register.rs Improve empty pipelines () 2022-12-08 07:31:57 +13:00
return_.rs New commands: break, continue, return, and loop () 2022-11-25 09:39:16 +13:00
try_.rs Make $in work in catch closures () 2022-12-22 09:35:41 -06:00
use_.rs Change instances of Value::string("foo", Span::test_data()) to Value::test_string("foo") () 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() () 2022-12-09 11:37:51 -05:00
while_.rs Add more input/output type annotations () 2022-12-21 20:20:46 +01:00