completion powershell
limactl completion powershell
为 PowerShell 生成自动补全脚本
概述
为 PowerShell 生成自动补全脚本。
要在当前会话中加载补全:
limactl completion powershell | Out-String | Invoke-Expression
要为每个新 PowerShell 会话添加补全,请运行:
limactl completion powershell > limactl.ps1
并将 limactl.ps1 文件的来源添加到您的 PowerShell 配置文件中。
limactl completion powershell
选项
-h, --help help for powershell
从父命令继承的选项
--debug 调试模式
--log-format string 设置日志格式 [text, json] (default "text")
--log-level string 设置日志级别 [trace, debug, info, warn, error]
--tty 启用 TUI 交互,如打开编辑器。默认在终端时为 true。自动化时设为 false。
-y, --yes --tty=false 的别名
另请参见
- limactl completion - 为指定的 shell 生成自动补全脚本