config

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package config implements loading config from several sources and client creation.

Package config implements loading config from several sources and client creation.

Package config implements loading config from several sources and client creation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure() error

Configure implements an interactive prompt to create a configuration file.

func DefaultConfigPath

func DefaultConfigPath() string

DefaultConfigPath determines the default configuration file path.

func NewClient

func NewClient(opts *Options) (*client.Client, error)

NewClient loads configuration from several sources and creates a new client.

Types

type Options

type Options struct {
	ConfigPath string
	ConfigOpts []string
}

Options represent client configuration options.

Jump to

Keyboard shortcuts

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