檢視原始碼 mix help (Mix v1.16.2)

列出所有任務和別名,或列印特定任務或別名的文件。

引數

$ mix help                  - prints all aliases, tasks and their short descriptions
$ mix help ALIAS            - prints the definition for the given alias
$ mix help TASK             - prints full docs for the given task
$ mix help --search PATTERN - prints all tasks and aliases that contain PATTERN in the name
$ mix help --names          - prints all task names and aliases
                            (useful for autocompleting)

顏色

在可能的情況下,mix help 會使用色彩格式化說明資訊。格式化可以透過設定 Mix 應用程式自訂,不論是在專案內 (config/config.exs) 或使用本機設定 (~/.mix/config.exs)。

例如,若要停用色彩,可以使用設定

[mix: [colors: [enabled: false]]]

可用的色彩選項有

  • :enabled - 顯示 ANSI 格式化 (預設為 IO.ANSI.enabled?/0)
  • :doc_code - 程式碼區塊的屬性 (青色,亮)
  • :doc_inline_code - 內嵌程式碼 (青色)
  • :doc_headings - h1 和 h2 (黃色,亮)
  • :doc_title - 輸出結果的整體標題 (反白,黃色,亮)
  • :doc_bold - (亮)
  • :doc_underline - (底線)