W3cubDocs

/Nushell

view span for debug

View the contents of a span.

Signature

> view span {flags} (start) (end)

Parameters

  • start: start of the span
  • end: end of the span

Input/output types:

input output
nothing string

Examples

View the source of a span. 1 and 2 are just example values. Use the return of debug -r to get the actual values

>some|pipeline|or|variable|debug-r;viewspan12

Notes

This command is meant for debugging purposes. It allows you to view the contents of nushell spans. One way to get spans is to pipe something into 'debug --raw'. Then you can use the Span { start, end } values as the start and end values for this command.

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/view_span.html