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)
      --quiet                      安靜模式建置
  -M, --renderToMemory             渲染到記憶體(主要用於執行伺服器時)
  -s, --source string              讀取檔案的相對檔案系統路徑
      --themesDir string           主題目錄的檔案系統路徑

相關內容