HUGO
Menu
GitHub 87548 stars Mastodon

hugo completion bash

hugo completion bash

為 bash 生成自動完成腳本

簡介

為 bash shell 生成自動完成腳本。

此腳本依賴於 ‘bash-completion’ 包。 如果尚未安裝,可以通過操作系統的包管理器安裝。

要在當前 shell 會話中加載自動完成:

source <(hugo completion bash)

要為每個新會話加載自動完成,執行一次:

Linux:

hugo completion bash > /etc/bash_completion.d/hugo

macOS:

hugo completion bash > $(brew --prefix)/etc/bash_completion.d/hugo

您需要啟動一個新的 shell 才能使此設置生效。

hugo completion bash

選項

-h, --help              bash 的幫助
      --no-descriptions   禁用自動完成描述

從父命令繼承的選項

--clock string               設置 Hugo 使用的時鐘,例如 --clock 2021-11-06T22:30:00.00+09:00
      --config string              配置文件(默認為 hugo.yaml|json|toml)
      --configDir string           配置目錄(默認為 "config")
  -d, --destination string         寫入文件的文件系統路徑
  -e, --environment string         構建環境
      --ignoreVendorPaths string   忽略與給定 Glob 模式匹配的任何 _vendor 模塊路徑
      --logLevel string            日志級別(debug|info|warn|error)
      --noBuildLock                不創建 .hugo_build.lock 文件
      --quiet                      以安靜模式構建
  -M, --renderToMemory             渲染到內存(主要在運行服務器時有用)
  -s, --source string              讀取文件的相對文件系統路徑
      --themesDir string           主題目錄的文件系統路徑

另請參閱


Last updated: January 1, 0001
Improve this page