{"action":"created","issue":{"url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/issues/18","labels_url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/issues/18/comments","events_url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/issues/18/events","html_url":"https://github.com/bexelbie/vagrant-adbinfo/issues/18","id":115896812,"number":18,"title":"adbinfo should be possible to evaluate in shell","user":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/milestones/2","html_url":"https://github.com/bexelbie/vagrant-adbinfo/milestones/v0.0.5","labels_url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/milestones/2/labels","id":1401927,"number":2,"title":"v0.0.5","description":"","creator":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2015-11-09T11:29:20Z","updated_at":"2015-11-09T15:12:23Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-11-09T15:12:16Z","updated_at":"2015-11-10T11:55:02Z","closed_at":null,"body":"currently adbinfo output things like:\r\n\r\nSet the following environment variables to enable access to the\r\ndocker daemon running inside of the vagrant virtual machine:\r\n```\r\nexport DOCKER_HOST=tcp://127.0.0.1:2379\r\nexport DOCKER_CERT_PATH=/root/vagrant/adb/.vagrant/machines/default/virtualbox/.docker\r\nexport DOCKER_TLS_VERIFY=1\r\nexport DOCKER_MACHINE_NAME=\"8606567\"\r\n```\r\n\r\nSince the first text are not comments you can not do this:\r\n\r\n```\r\neval \"$(vagrant adb-info)\"\r\n```\r\n\r\nThus I suggest the output instead should be:\r\n\r\n```\r\nexport DOCKER_HOST=tcp://127.0.0.1:2379\r\nexport DOCKER_CERT_PATH=/root/vagrant/adb/.vagrant/machines/default/virtualbox/.docker\r\nexport DOCKER_TLS_VERIFY=1\r\nexport DOCKER_MACHINE_NAME=\"8606567\"\r\n# run this command to configure your shell:\r\n# eval \"$(vagrant adb-info)\"\r\n```\r\n\r\nActual issue <https://github.com/projectatomic/adb-atomic-developer-bundle/issues/111>"},"comment":{"url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/issues/comments/155400813","html_url":"https://github.com/bexelbie/vagrant-adbinfo/issues/18#issuecomment-155400813","issue_url":"https://api.github.com/repos/bexelbie/vagrant-adbinfo/issues/18","id":155400813,"user":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T11:55:02Z","updated_at":"2015-11-10T11:55:02Z","body":"Sample output after patch\r\n```\r\n# Set the following environment variables to enable access to the\r\n# docker daemon running inside of the vagrant virtual machine:\r\n\r\nexport DOCKER_HOST=tcp://127.0.0.1:5555\r\nexport DOCKER_CERT_PATH=/home/nshaikh/work/src/vagrant-adbinfo/.vagrant/machines/default/virtualbox/.docker\r\nexport DOCKER_TLS_VERIFY=1\r\nexport DOCKER_MACHINE_NAME=f6ba3d1\r\n\r\n# run following command to configure your shell:\r\n# eval \"$(vagrant adb-info)\"\r\n\r\n```\r\nand the eval command\r\n```\r\neval \"$(bundle exec vagrant adbinfo)\"\r\n```\r\nand env vars\r\n```\r\necho $DOCKER_HOST; echo $DOCKER_CERT_PATH; echo $DOCKER_TLS_VERIFY; echo $DOCKER_MACHINE_NAME\r\ntcp://127.0.0.1:5555\r\n/home/nshaikh/work/src/vagrant-adbinfo/.vagrant/machines/default/virtualbox/.docker\r\n1\r\nf6ba3d1\r\n```"}}