Home Explore Blog CI



nushell

2nd chunk of `blog/2020-05-12-nushell_0_14_0.md`
ed92f0e514863777677a3556810d0035adbccabf72d4ff6c0000000100000638


We're working to add examples to all commands. If that's something you're interested in helping with, come join us on [discord](https://discord.gg/NtAbbGn).

## Subcommands (sophiajt)

As we fill out more forms of commands that Nu can represent, one type that we weren't able to do was subcommands. This meant all of our commands were at the top level, making it more difficult to find what you needed. Additionally, many external commands use subcommands, which meant we had no way to effectively wrap them in Nu.

With 0.14, you can now define subcommands. Subcommands each get a unique signature which has its own coloring, autocomplete, etc.

```
> open myfile.txt | from csv --headerless
```

## Breaking changes: renaming some commands (sophiajt, andrasio)

You may have noticed above that the `from-csv` is now `from csv`, that is, the `csv` part is now a subcommand of the `from` command. We've moved all `from-*` and `to-*` commands to be subcommands. This change was requested by users as part of an effort to streamline how conversion commands work.

Another set of changes requested by users was to update the names of some of the commands to the more common forms:

- `pick` is now `select`. This matches more closely with SQL, LINQ, and shells with similar functionality.
- `edit` is now `update`

While we are cautious to take breaking changes, we're confident - judging from user feedback - that these changes make Nu more ergonomic and easier to learn.

## `ls` learns read directory sizes (JosephTLyons)

Title: Nushell 0.14.0 - Help Examples, Subcommands, Command Renames, and ls Improvements
Summary
Nushell 0.14.0 introduces examples to the built-in help for commands, making it easier to understand their usage. It also adds support for subcommands, allowing for a more organized command structure and the ability to wrap external commands that use subcommands. The `from-*` and `to-*` commands have been moved to subcommands, and some commands have been renamed for better ergonomics (`pick` to `select` and `edit` to `update`). Additionally, the `ls` command has been improved to read directory sizes.