config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Src Source      `toml:"source"`
	Dst Destination `toml:"destination"`
	// contains filtered or unexported fields
}

func LoadFromFile

func LoadFromFile(path string) (Config, error)

func LoadFromString

func LoadFromString(s string) (Config, error)

func (*Config) Filename

func (c *Config) Filename() string

func (*Config) WriteToFile

func (c *Config) WriteToFile(path string) error

type Destination

type Destination struct {
	P4Port       string `toml:"p4port"`
	P4User       string `toml:"p4user"`
	ClientName   string `toml:"new_client_name"`
	ClientRoot   string `toml:"new_client_root"`
	ClientStream string `toml:"new_client_stream"`
}

type Source

type Source struct {
	P4Port   string `toml:"p4port"`
	P4User   string `toml:"p4user"`
	P4Client string `toml:"p4client"`
}

Jump to

Keyboard shortcuts

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