HostKit.CommandLine (host_kit v0.1.0-beta.0)

Copy Markdown View Source

A parsed, shell-like simple command line stored as argv.

Summary

Types

t()

@type t() :: %HostKit.CommandLine{
  args: [String.t()],
  ast: term(),
  command: String.t(),
  source: String.t()
}

Functions

parse(source)

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

parse!(source)

@spec parse!(String.t()) :: t()