Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Trello `yaml:"trello"` Editor string `yaml:"editor"` Format string `yaml:"format"` NeverPrompt bool `yaml:"never_prompt"` }
Conf of the application
type FileRepository ¶
type FileRepository struct {
// contains filtered or unexported fields
}
FileRepository persists the app config on a file system using Viper
func (*FileRepository) Init ¶
func (fr *FileRepository) Init() error
Init the configuration with the given flags
func (*FileRepository) Save ¶
func (fr *FileRepository) Save(c *Conf) error
Save the given app config in filesystem
type Provider ¶
func NewProvider ¶
func NewProvider(r Repository) Provider
type Repository ¶
Repository to persist the app config
func NewFileRepository ¶
func NewFileRepository(file string, v *viper.Viper) Repository
NewFileRepository creates a new FileRepository
type Trello ¶
type Trello struct { AppName string `yaml:"-"` ApiKey string `yaml:"api_key"` AccessToken string `yaml:"access_token"` BaseURL string `yaml:"base_url"` TrelloDefaultConfig `yaml:"default_config"` }
type TrelloDefaultBoard ¶
type TrelloDefaultConfig ¶
type TrelloDefaultConfig struct { TrelloDefaultBoard `yaml:"board"` TrelloDefaultList `yaml:"list"` Labels []string `yaml:"labels"` }
type TrelloDefaultList ¶
Click to show internal directories.
Click to hide internal directories.