{"action":"created","issue":{"url":"https://api.github.com/repos/FreedomBen/dory/issues/20","repository_url":"https://api.github.com/repos/FreedomBen/dory","labels_url":"https://api.github.com/repos/FreedomBen/dory/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/FreedomBen/dory/issues/20/comments","events_url":"https://api.github.com/repos/FreedomBen/dory/issues/20/events","html_url":"https://github.com/FreedomBen/dory/issues/20","id":330906829,"node_id":"MDU6SXNzdWUzMzA5MDY4Mjk=","number":20,"title":"Specify custom location of config file - option","user":{"login":"andreyantipov","id":586380,"node_id":"MDQ6VXNlcjU4NjM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/586380?v=4","gravatar_id":"","url":"https://api.github.com/users/andreyantipov","html_url":"https://github.com/andreyantipov","followers_url":"https://api.github.com/users/andreyantipov/followers","following_url":"https://api.github.com/users/andreyantipov/following{/other_user}","gists_url":"https://api.github.com/users/andreyantipov/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyantipov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyantipov/subscriptions","organizations_url":"https://api.github.com/users/andreyantipov/orgs","repos_url":"https://api.github.com/users/andreyantipov/repos","events_url":"https://api.github.com/users/andreyantipov/events{/privacy}","received_events_url":"https://api.github.com/users/andreyantipov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-09T17:53:25Z","updated_at":"2018-06-13T09:54:17Z","closed_at":null,"author_association":"NONE","body":"Hello, is it possible to specify location of config file instad using default ~/.dory.yml?"},"comment":{"url":"https://api.github.com/repos/FreedomBen/dory/issues/comments/396882105","html_url":"https://github.com/FreedomBen/dory/issues/20#issuecomment-396882105","issue_url":"https://api.github.com/repos/FreedomBen/dory/issues/20","id":396882105,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njg4MjEwNQ==","user":{"login":"andreyantipov","id":586380,"node_id":"MDQ6VXNlcjU4NjM4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/586380?v=4","gravatar_id":"","url":"https://api.github.com/users/andreyantipov","html_url":"https://github.com/andreyantipov","followers_url":"https://api.github.com/users/andreyantipov/followers","following_url":"https://api.github.com/users/andreyantipov/following{/other_user}","gists_url":"https://api.github.com/users/andreyantipov/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyantipov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyantipov/subscriptions","organizations_url":"https://api.github.com/users/andreyantipov/orgs","repos_url":"https://api.github.com/users/andreyantipov/repos","events_url":"https://api.github.com/users/andreyantipov/events{/privacy}","received_events_url":"https://api.github.com/users/andreyantipov/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T09:54:17Z","updated_at":"2018-06-13T09:54:17Z","author_association":"NONE","body":"> Would -f config-file.yml (plus alias dory='dory -f config-file.yml' in ~/.bashrc)work for you?\r\n\r\nYeah!\r\n\r\n> Any suggestions on interface?\r\n\r\nWhat if also implement auto-search config (.dory.yml) initialiser method which recursively will search config in current working directory up to home directory (including it)? \r\n\r\nSomething like that\r\n\r\n```ruby\r\n#!/usr/bin/env ruby\r\n\r\nCONFIG = \".dory.yml\"\r\nHOME = ENV[\"HOME\"]\r\n\r\nconfig = catch (:config) do\r\n\r\n\tloop do\r\n\t\t# Search config file\r\n\t\tDir.entries(Dir.pwd).each do |file|\r\n\t\t\tthrow(:config, \"#{Dir.pwd}/#{CONFIG}\") if file === CONFIG\r\n\t\tend\r\n\r\n\t\t# Move up to HOME\r\n\t\tHOME === Dir.pwd ? throw(:config, false) : Dir.chdir(\"..\")\r\n\r\n\tend #loop\r\nend #:config\r\n\r\nputs config\r\n```"}}
{"actor":{"display_login":"andreyantipov"}}