Crate nu_command

source ·

Modules§

Structs§

Functions§

  • Return map of <removed_command_name, new_command_name> This covers simple removed commands nicely, but it’s not great for deprecating subcommands like foo bar where foo is still a valid command. For those, it’s currently easiest to have a “stub” command that just returns an error.
  • Sort a value. This only makes sense for lists and list-like things, so for everything else we just return the value as-is. CustomValues are converted to their base value and then sorted.
  • Sort a value in-place. This is more efficient than sort_value() because it avoids cloning, but it does not work for CustomValues; they are returned as-is.

Type Aliases§