config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 3 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 {
	WorkDir     string
	GitLabToken string
	GitLabOwner string
	GitLabRepo  string
	GitHubToken string
	GitHubOwner string
	GitHubRepo  string
	Reimport    bool
}

func NewConfig

func NewConfig(opts ...Option) Config

func (Config) GitLabFilePath

func (c Config) GitLabFilePath() string

func (Config) GitLabRepoPath

func (c Config) GitLabRepoPath() string

type Option

type Option func(*Config)

func OptGitHubOwner

func OptGitHubOwner(s string) Option

func OptGitHubRepo

func OptGitHubRepo(s string) Option

func OptGitHubToken

func OptGitHubToken(s string) Option

func OptGitLabOwner

func OptGitLabOwner(s string) Option

func OptGitLabRepo

func OptGitLabRepo(s string) Option

func OptGitLabToken

func OptGitLabToken(s string) Option

func OptReimport

func OptReimport(b bool) Option

func OptWorkDir

func OptWorkDir(s string) Option

Jump to

Keyboard shortcuts

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