marqdo

inputfail

keywords/input.mq.md

Structure

fn · h1main
comment

CLI 可用管道或 --stdin-file 喂入一行;live marqdo view 在 Execution 区可填预置输入后重跑。静态站点默认无 stdin,会看到 capture 提示。

bind`name` = > input prompt=Name:
call> print text=Hello `name`!

Execution

keywords/input.mq.md:10:1: input is not available under capture / view

Source

---
title: 内置 input
description: 从 stdin 读一行;可选 prompt。可用 --stdin-file 或 live view 预置输入。
---

# main

CLI 可用管道或 --stdin-file 喂入一行;live marqdo view 在 Execution 区可填预置输入后重跑。静态站点默认无 stdin,会看到 capture 提示。

*`name` = > input prompt=Name: *

> print text=Hello `name`!