options_tools

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeOptionsInto

func DecodeOptionsInto(data *Options, doc *document.Document, container *cst.Node, consumed map[string]bool, keyPrefix string) error

func EncodeOptionsFrom

func EncodeOptionsFrom(data *Options, doc *document.Document, container *cst.Node) error

Types

type Options

type Options struct {
	Merge []string `toml:"merge"`
}

func (*Options) SetFlagDefinitions

func (options *Options) SetFlagDefinitions(flagSet interfaces.CLIFlagDefinitions)

type OptionsDocument

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

func DecodeOptions

func DecodeOptions(input []byte) (*OptionsDocument, error)

func (*OptionsDocument) Comment

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

func (*OptionsDocument) Data

func (d *OptionsDocument) Data() *Options

func (*OptionsDocument) Encode

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

func (*OptionsDocument) InlineComment

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

func (*OptionsDocument) SetComment

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

func (*OptionsDocument) SetInlineComment

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

func (*OptionsDocument) Undecoded

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

Source Files

  • main.go
  • main_tommy.go

Jump to

Keyboard shortcuts

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