Documentation
¶
Index ¶
- func DecodeV0Into(data *V0, doc *document.Document, container *cst.Node, ...) error
- func DecodeV1Into(data *V1, doc *document.Document, container *cst.Node, ...) error
- func DecodeV2Into(data *V2, doc *document.Document, container *cst.Node, ...) error
- func DecodeabbreviationsV0(input []byte) (*abbreviationsV0Document, error)
- func DecodeabbreviationsV0Into(data *abbreviationsV0, doc *document.Document, container *cst.Node, ...) error
- func DecodeabbreviationsV1(input []byte) (*abbreviationsV1Document, error)
- func DecodeabbreviationsV1Into(data *abbreviationsV1, doc *document.Document, container *cst.Node, ...) error
- func DecodeabbreviationsV2(input []byte) (*abbreviationsV2Document, error)
- func DecodeabbreviationsV2Into(data *abbreviationsV2, doc *document.Document, container *cst.Node, ...) error
- func EncodeV0From(data *V0, doc *document.Document, container *cst.Node) error
- func EncodeV1From(data *V1, doc *document.Document, container *cst.Node) error
- func EncodeV2From(data *V2, doc *document.Document, container *cst.Node) error
- func EncodeabbreviationsV0From(data *abbreviationsV0, doc *document.Document, container *cst.Node) error
- func EncodeabbreviationsV1From(data *abbreviationsV1, doc *document.Document, container *cst.Node) error
- func EncodeabbreviationsV2From(data *abbreviationsV2, doc *document.Document, container *cst.Node) error
- type OptionGetter
- type Options
- func (options Options) UsePrintTags() bool
- func (options Options) UsePrintTime() bool
- func (options Options) WithDescriptionInBox(v bool) Options
- func (options Options) WithExcludeFields(v bool) Options
- func (options Options) WithPrintBlobDigests(v bool) Options
- func (options Options) WithPrintSigs(v bool) Options
- func (options Options) WithPrintTai(v bool) Options
- func (options Options) WithPrintTime(v bool) Options
- type Overlay
- type OverlayAbbreviations
- type OverlayBox
- type OverlayGetter
- type V0
- type V0Document
- func (d *V0Document) Comment(key string) string
- func (d *V0Document) Data() *V0
- func (d *V0Document) Encode() ([]byte, error)
- func (d *V0Document) InlineComment(key string) string
- func (d *V0Document) SetComment(key, comment string)
- func (d *V0Document) SetInlineComment(key, comment string)
- func (d *V0Document) Undecoded() []string
- type V1
- type V1Document
- func (d *V1Document) Comment(key string) string
- func (d *V1Document) Data() *V1
- func (d *V1Document) Encode() ([]byte, error)
- func (d *V1Document) InlineComment(key string) string
- func (d *V1Document) SetComment(key, comment string)
- func (d *V1Document) SetInlineComment(key, comment string)
- func (d *V1Document) Undecoded() []string
- type V2
- type V2Document
- func (d *V2Document) Comment(key string) string
- func (d *V2Document) Data() *V2
- func (d *V2Document) Encode() ([]byte, error)
- func (d *V2Document) InlineComment(key string) string
- func (d *V2Document) SetComment(key, comment string)
- func (d *V2Document) SetInlineComment(key, comment string)
- func (d *V2Document) Undecoded() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeV0Into ¶
func DecodeV1Into ¶
func DecodeV2Into ¶
func DecodeabbreviationsV0 ¶
func DecodeabbreviationsV1 ¶
func DecodeabbreviationsV2 ¶
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 MakeConfig ¶
func MakeConfig(base Options, overlays ...OverlayGetter) Options
func MakeDefaultConfig ¶
func MakeDefaultConfig(overlays ...OverlayGetter) Options
func (Options) UsePrintTags ¶
func (Options) UsePrintTime ¶
func (Options) WithDescriptionInBox ¶
func (Options) WithExcludeFields ¶
func (Options) WithPrintBlobDigests ¶
func (Options) WithPrintSigs ¶
func (Options) WithPrintTai ¶
func (Options) WithPrintTime ¶
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 ¶
type OverlayAbbreviations ¶
type OverlayBox ¶
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 ¶
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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.