HostKit.Resources.Mise (host_kit v0.1.0-beta.0)

Copy Markdown View Source

Desired mise installation and system-wide tool versions.

Summary

Types

packages()

@type packages() :: false | :auto | :common | [atom() | String.t()]

t()

@type t() :: %HostKit.Resources.Mise{
  depends_on: [term()],
  install: boolean(),
  meta: map(),
  name: atom(),
  packages: packages(),
  path: String.t(),
  system_data_dir: String.t(),
  tools: [tool()],
  version: String.t() | nil
}

tool()

@type tool() :: %{name: atom() | String.t(), version: String.t(), opts: keyword()}

Functions

add_tool(mise, name, version, opts \\ [])

@spec add_tool(t(), atom() | String.t(), String.t(), keyword()) :: t()

id(mise)

@spec id(t()) :: {:mise, atom()}

new(opts \\ [])

@spec new(keyword()) :: t()

package_resources(mise)

@spec package_resources(t()) :: [
  HostKit.Resources.Package.t() | HostKit.Resources.Capability.t()
]