Skip to content

Commit

Permalink
show comment if remote config turned on
Browse files Browse the repository at this point in the history
  • Loading branch information
takashi committed May 8, 2014
1 parent d83834d commit 457d444
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Run in: %s
`, issue.Label, issue.FilePath, issue.Line, issue.Title)
}
color.Printf("updating remote issues...\n")
if HasRemoteConfiguration() {
var adapter Adapter = &AdapterGithub{}
adapter.Update()
Expand Down
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func LoadConfig() (Config, error) {
}

// read json config file.
// [todo] - lint json file syntax
body, err := ioutil.ReadFile(CONF_FILENAME)
if err != nil {
return c, err
Expand Down
8 changes: 8 additions & 0 deletions erkconf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"label": "todo",
"remote": true,
"remote_config": {
"repo": "takashi/erk",
"api_token": "e1e99726fbf2709c488dc175a55d968f5eddb67e"
}
}

0 comments on commit 457d444

Please sign in to comment.