Beancount.Directives.PushTag (beancount_ex v0.6.0)

Copy Markdown View Source

The pushtag directive pushes a tag onto Beancount's tag stack.

See The Tag Stack.

Beancount syntax

pushtag #trip

General form: pushtag #Tag

Tags pushed here are automatically applied to following transactions until a matching poptag.

Elixir struct

%Beancount.Directives.PushTag{
  tag: "trip"
}

Or use Beancount.push_tag/1:

Beancount.push_tag("trip")

Fields

  • tag - tag name without the # prefix (rendered as pushtag #trip).

Summary

Types

t()

@type t() :: %Beancount.Directives.PushTag{tag: String.t()}