View Source Skogsra.Template (Skogsrå v2.5.0)

This module defines several templates for OS environment variable definitions.

Summary

Types

t()

A template struct.

Template type.

Functions

Template internal structure.

Generates a template.

Builds a template struct from a map.

Types

@type t() :: %Skogsra.Template{
  docs: docs :: Skogsra.Docs.docs(),
  env: env :: Skogsra.Env.t(),
  type: type :: type()
}

A template struct.

@type type() :: :elixir | :unix | :windows

Template type.

Functions

Link to this function

%Skogsra.Template{}

View Source (struct)

Template internal structure.

Link to this function

generate(templates, filename)

View Source
@spec generate([t()], Path.t()) :: :ok | {:error, File.posix()}

Generates a template.

@spec new(map()) :: t()

Builds a template struct from a map.