config

package
v0.0.0-...-256bffb Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Exec           string
	Args           []string
	PrintsToStdout bool
}

Command contains options for executing a given command against an acme window

type Config

type Config struct {
	Format map[string]Spec
	Tag    Tag
}

Config represents the entire configuration file

func Load

func Load(path string) (*Config, error)

Load parses the TOML configuration file at the specified path

type Spec

type Spec struct {
	CommentStyle string
	Indent       int
	Tabexpand    bool
	Extensions   []string
	Commands     []Command
}

Spec contains the formatting specified by the config file

type Tag

type Tag struct {
	Menu []string
}

Tag configures options for the Acme tag

Jump to

Keyboard shortcuts

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