config

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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