Dagger.Command (dagger v1.0.0-beta.18)

Copy Markdown View Source

A command's arguments and execution settings.

Summary

Functions

The command arguments.

Environment variable overrides. Other variables come from the container.

A unique identifier for this Command.

Whether the command has all root capabilities.

Whether the command has access to Dagger.

Working directory override. If unset, use the container's working directory.

Types

t()

@type t() :: %Dagger.Command{client: term(), query_builder: term()}

Functions

args(command)

@spec args(t()) :: {:ok, [String.t()]} | {:error, term()}

The command arguments.

env(command)

@spec env(t()) :: {:ok, [Dagger.EnvVariable.t()]} | {:error, term()}

Environment variable overrides. Other variables come from the container.

id(command)

@spec id(t()) :: {:ok, String.t()} | {:error, term()}

A unique identifier for this Command.

insecure_root_capabilities(command)

@spec insecure_root_capabilities(t()) :: {:ok, boolean()} | {:error, term()}

Whether the command has all root capabilities.

privileged_nesting(command)

@spec privileged_nesting(t()) :: {:ok, boolean()} | {:error, term()}

Whether the command has access to Dagger.

workdir(command)

@spec workdir(t()) :: {:ok, String.t() | nil} | {:error, term()}

Working directory override. If unset, use the container's working directory.