tags

The tags commands allows users to access the metadata of the previous value in the pipeline. This command may be run on multiple values of input as well.

As of writing this, the only metadata returned includes:

Examples

> open README.md | tags
━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 span           │ anchor
────────────────┼──────────────────────────────────────────────────
 [table: 1 row] │ /Users/danielh/Projects/github/nushell/README.md
━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
> open README.md | tags | get span
━━━━━━━┯━━━━━
 start │ end
───────┼─────
     5 │  14
━━━━━━━┷━━━━━
> ls | tags | first 3 | get span
━━━┯━━━━━━━┯━━━━━
 # │ start │ end
───┼───────┼─────
 0 │     0 │   2
 1 │     0 │   2
 2 │     0 │   2
━━━┷━━━━━━━┷━━━━━

Reference

More useful information on the tags command can be found by referencing The Nu Book’s entry on Metadata