config

package
Version: v0.0.0-...-1250730 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config reads and writes hacksaw configuration data to io

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DefaultCodebase string
	Codebases       map[string]string //key: name, value: path
	Workspaces      map[string]string //key: name, value: codebase
}

func GetConfig

func GetConfig() *Config

Config gets the singleton config instance

func (Config) Copy

func (c Config) Copy() Config

Config gets a copy of the config

func (*Config) Read

func (c *Config) Read(input io.Reader) error

Read the configuration from an io.Reader

func (*Config) ReadConfigFromFile

func (c *Config) ReadConfigFromFile(filePath string) error

func (*Config) Reset

func (c *Config) Reset()

Reset sets the config to zero values

func (Config) Write

func (c Config) Write(output io.Writer) error

Write the configuration to an io.Writer

func (Config) WriteConfigToFile

func (c Config) WriteConfigToFile(filePath string) error

Source Files

Jump to

Keyboard shortcuts

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