Skip to content

Commit

Permalink
add remote configuration struct
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi committed May 7, 2014
1 parent 2b1f87b commit e87c2aa
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,18 @@ import (
"io/ioutil"
)

type RemoteConfig struct {
Host string
Repo string
Api string
ApiToken string `json: "api_token"`
type Config struct {
Dirs []string `json:"dirs, omitempty"`
Files []string `json:"files, omitempty"`
Remote bool `json:"remote"`
Label string `json:"label"`
RemoteConfig RemoteConfig `json:"remote_config, omitempty"`
Ignore IgnoreList `json:"ignore"`
}

type Config struct {
Dirs []string
Files []string
Remote bool
Label string
RemoteConfig RemoteConfig `json: "remote_config"`
Ignore IgnoreList
type RemoteConfig struct {
Repo string `json:"repo"`
ApiToken string `json:"api_token"`
}

func LoadConfig() (Config, error) {
Expand Down

0 comments on commit e87c2aa

Please sign in to comment.