Skip to main content

Output With Type Annotation (tout)

Laurence MorganLess than 1 minuteBuiltin CommandsInput / Output Streams

Output With Type Annotation (tout)

Print a string to the stdout and set it's data-type

Description

Write parameters to stdout without a trailing new line character. Cast the output's data-type to the value of the first parameter.

Usage

tout data-type "string to write" -> <stdout>

Examples

» tout json { "Code": 404, "Message": "Page not found" } -> pretty
{
    "Code": 404,
    "Message": "Page not found"
}

Detail

tout supports ANSI constants.

Unlike out, tout does not append a carriage return / line feed.

Synonyms

  • tout

See Also


This document was generated from builtins/core/io/echo_doc.yamlopen in new window.

Last update:
Contributors: Laurence Morgan,Laurence Morgan,Laurence