template yq

limactl template yq

查询模板表达式

概述

使用内置的 YQ 评估器从模板中提取信息。 在评估 YQ 表达式之前,外部引用会被嵌入,默认值会被填充。

Example: limactl template yq template:default ‘.images[].location’

The example command is equivalent to using an external yq command like this: limactl template copy –fill template:default - | yq ‘.images[].location’

limactl template yq TEMPLATE EXPR [flags]

选项

  -h, --help   help for yq

从父命令继承的选项

      --debug               调试模式
      --log-format string   设置日志格式 [text, json] (default "text")
      --log-level string    设置日志级别 [trace, debug, info, warn, error]
      --tty                 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
  -y, --yes                 --tty=false 的别名

另请参见