options_print

package
v0.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeV0Into

func DecodeV0Into(data *V0, sub *cst.Value) error

func DecodeV1Into

func DecodeV1Into(data *V1, sub *cst.Value) error

func DecodeV2Into

func DecodeV2Into(data *V2, sub *cst.Value) error

func DecodeabbreviationsV0

func DecodeabbreviationsV0(input []byte) (*abbreviationsV0Document, error)

func DecodeabbreviationsV0Into

func DecodeabbreviationsV0Into(data *abbreviationsV0, sub *cst.Value) error

func DecodeabbreviationsV1

func DecodeabbreviationsV1(input []byte) (*abbreviationsV1Document, error)

func DecodeabbreviationsV1Into

func DecodeabbreviationsV1Into(data *abbreviationsV1, sub *cst.Value) error

func DecodeabbreviationsV2

func DecodeabbreviationsV2(input []byte) (*abbreviationsV2Document, error)

func DecodeabbreviationsV2Into

func DecodeabbreviationsV2Into(data *abbreviationsV2, sub *cst.Value) error

func EncodeV0From

func EncodeV0From(data *V0, doc *document.Document, container *cst.Node) error

func EncodeV1From

func EncodeV1From(data *V1, doc *document.Document, container *cst.Node) error

func EncodeV2From

func EncodeV2From(data *V2, doc *document.Document, container *cst.Node) error

func EncodeabbreviationsV0From

func EncodeabbreviationsV0From(data *abbreviationsV0, doc *document.Document, container *cst.Node) error

func EncodeabbreviationsV1From

func EncodeabbreviationsV1From(data *abbreviationsV1, doc *document.Document, container *cst.Node) error

func EncodeabbreviationsV2From

func EncodeabbreviationsV2From(data *abbreviationsV2, doc *document.Document, container *cst.Node) error

Types

type OptionGetter

type OptionGetter interface {
	GetPrintOptions() Options
}

type Options

type Options struct {
	AbbreviateZettelIds        bool
	AbbreviateMarklIds         bool
	BoxPrintIncludeDescription bool
	BoxPrintTime               bool
	BoxPrintTagsAlways         bool
	BoxPrintEmptyBlobIds       bool
	BoxPrintIncludeTypes       bool
	BoxPrintTai                bool
	BoxDescriptionInBox        bool
	BoxExcludeFields           bool
	PrintMatchedDormant        bool
	PrintBlobDigests           bool
	PrintSigs                  bool
	PrintFlush                 bool
	PrintUnchanged             bool
	PrintColors                bool
	PrintInventoryLists        bool
	Newlines                   bool
}

func Default

func Default() Options

func MakeConfig

func MakeConfig(base Options, overlays ...OverlayGetter) Options

func MakeDefaultConfig

func MakeDefaultConfig(overlays ...OverlayGetter) Options

func (Options) UsePrintTags

func (options Options) UsePrintTags() bool

func (Options) UsePrintTime

func (options Options) UsePrintTime() bool

func (Options) WithDescriptionInBox

func (options Options) WithDescriptionInBox(v bool) Options

func (Options) WithExcludeFields

func (options Options) WithExcludeFields(v bool) Options

func (Options) WithPrintBlobDigests

func (options Options) WithPrintBlobDigests(v bool) Options

func (Options) WithPrintSigs

func (options Options) WithPrintSigs(v bool) Options

func (Options) WithPrintTai

func (options Options) WithPrintTai(v bool) Options

func (Options) WithPrintTime

func (options Options) WithPrintTime(v bool) Options

type Overlay

type Overlay struct {
	Abbreviations *OverlayAbbreviations
	OverlayBox

	PrintMatchedDormant *bool
	PrintBlobDigests    *bool
	PrintFlush          *bool
	PrintUnchanged      *bool
	PrintColors         *bool
	PrintInventoryLists *bool
	Newlines            *bool
}

func (*Overlay) AddToFlags

func (overlay *Overlay) AddToFlags(flagSet interfaces.CLIFlagDefinitions)

func (Overlay) GetPrintOptionsOverlay

func (overlay Overlay) GetPrintOptionsOverlay() Overlay

type OverlayAbbreviations

type OverlayAbbreviations struct {
	ZettelIds *bool
	MarklIds  *bool
}

type OverlayBox

type OverlayBox struct {
	PrintIncludeDescription *bool
	PrintTime               *bool
	PrintTagsAlways         *bool
	PrintEmptyMarklIds      *bool
	PrintIncludeTypes       *bool
	PrintTai                *bool
	DescriptionInBox        *bool
	ExcludeFields           *bool
}

type OverlayGetter

type OverlayGetter interface {
	GetPrintOptionsOverlay() Overlay
}

type V0

type V0 struct {
	Abbreviations *abbreviationsV0 `toml:"abbreviations"`

	PrintMatchedDormant *bool `toml:"print-matched-archiviert"`
	PrintShas           *bool `toml:"print-shas"`
	PrintFlush          *bool `toml:"print-flush"`
	PrintUnchanged      *bool `toml:"print-unchanged"`
	PrintColors         *bool `toml:"print-colors"`
	PrintInventoryLists *bool `toml:"print-bestandsaufnahme"`
	// contains filtered or unexported fields
}

func (V0) GetAbbreviations

func (blob V0) GetAbbreviations() *OverlayAbbreviations

func (V0) GetPrintOptionsOverlay

func (blob V0) GetPrintOptionsOverlay() Overlay

type V0Document

type V0Document struct {
	// contains filtered or unexported fields
}

func DecodeV0

func DecodeV0(input []byte) (*V0Document, error)

func (*V0Document) Comment

func (d *V0Document) Comment(key string) string

func (*V0Document) Data

func (d *V0Document) Data() *V0

func (*V0Document) Encode

func (d *V0Document) Encode() ([]byte, error)

func (*V0Document) InlineComment

func (d *V0Document) InlineComment(key string) string

func (*V0Document) SetComment

func (d *V0Document) SetComment(key, comment string)

func (*V0Document) SetInlineComment

func (d *V0Document) SetInlineComment(key, comment string)

func (*V0Document) Undecoded

func (d *V0Document) Undecoded() []string

type V1

type V1 struct {
	Abbreviations *abbreviationsV1 `toml:"abbreviations"`

	PrintMatchedDormant *bool `toml:"print-matched-dormant"`
	PrintShas           *bool `toml:"print-shas"`
	PrintFlush          *bool `toml:"print-flush"`
	PrintUnchanged      *bool `toml:"print-unchanged"`
	PrintColors         *bool `toml:"print-colors"`
	PrintInventoryLists *bool `toml:"print-inventory_lists"`
	// contains filtered or unexported fields
}

func (V1) GetAbbreviations

func (blob V1) GetAbbreviations() *OverlayAbbreviations

func (V1) GetPrintOptionsOverlay

func (blob V1) GetPrintOptionsOverlay() Overlay

type V1Document

type V1Document struct {
	// contains filtered or unexported fields
}

func DecodeV1

func DecodeV1(input []byte) (*V1Document, error)

func (*V1Document) Comment

func (d *V1Document) Comment(key string) string

func (*V1Document) Data

func (d *V1Document) Data() *V1

func (*V1Document) Encode

func (d *V1Document) Encode() ([]byte, error)

func (*V1Document) InlineComment

func (d *V1Document) InlineComment(key string) string

func (*V1Document) SetComment

func (d *V1Document) SetComment(key, comment string)

func (*V1Document) SetInlineComment

func (d *V1Document) SetInlineComment(key, comment string)

func (*V1Document) Undecoded

func (d *V1Document) Undecoded() []string

type V2

type V2 struct {
	Abbreviations *abbreviationsV2 `toml:"abbreviations"`

	DescriptionInBox        *bool `toml:"-"`
	ExcludeFields           *bool `toml:"-"`
	PrintBlobDigests        *bool `toml:"print-blob_digests"`
	PrintColors             *bool `toml:"print-colors"`
	PrintEmptyBlobDigests   *bool `toml:"print-empty-blob_digests"`
	PrintFlush              *bool `toml:"print-flush"`
	PrintIncludeDescription *bool `toml:"print-include-description"`
	PrintIncludeTypes       *bool `toml:"print-include-types"`
	PrintInventoryLists     *bool `toml:"print-inventory_lists"`
	PrintMatchedDormant     *bool `toml:"print-matched-dormant"`
	PrintTagsAlways         *bool `toml:"print-tags-always"`
	PrintTai                *bool `toml:"-"`
	PrintTime               *bool `toml:"print-time"`
	PrintUnchanged          *bool `toml:"print-unchanged"`
}

func DefaultOverlay

func DefaultOverlay() V2

func (V2) GetAbbreviations

func (blob V2) GetAbbreviations() *OverlayAbbreviations

func (V2) GetPrintOptionsOverlay

func (blob V2) GetPrintOptionsOverlay() Overlay

type V2Document

type V2Document struct {
	// contains filtered or unexported fields
}

func DecodeV2

func DecodeV2(input []byte) (*V2Document, error)

func (*V2Document) Comment

func (d *V2Document) Comment(key string) string

func (*V2Document) Data

func (d *V2Document) Data() *V2

func (*V2Document) Encode

func (d *V2Document) Encode() ([]byte, error)

func (*V2Document) InlineComment

func (d *V2Document) InlineComment(key string) string

func (*V2Document) SetComment

func (d *V2Document) SetComment(key, comment string)

func (*V2Document) SetInlineComment

func (d *V2Document) SetInlineComment(key, comment string)

func (*V2Document) Undecoded

func (d *V2Document) Undecoded() []string

Source Files

  • main.go
  • v0.go
  • v0_tommy.go
  • v1.go
  • v1_tommy.go
  • v2.go
  • v2_tommy.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL