{"action":"created","issue":{"url":"https://api.github.com/repos/consolidation/Robo/issues/749","repository_url":"https://api.github.com/repos/consolidation/Robo","labels_url":"https://api.github.com/repos/consolidation/Robo/issues/749/labels{/name}","comments_url":"https://api.github.com/repos/consolidation/Robo/issues/749/comments","events_url":"https://api.github.com/repos/consolidation/Robo/issues/749/events","html_url":"https://github.com/consolidation/Robo/issues/749","id":340570269,"node_id":"MDU6SXNzdWUzNDA1NzAyNjk=","number":749,"title":"How to find RoboFile.php with global binary symlink","user":{"login":"dragoonis","id":146321,"node_id":"MDQ6VXNlcjE0NjMyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/146321?v=4","gravatar_id":"","url":"https://api.github.com/users/dragoonis","html_url":"https://github.com/dragoonis","followers_url":"https://api.github.com/users/dragoonis/followers","following_url":"https://api.github.com/users/dragoonis/following{/other_user}","gists_url":"https://api.github.com/users/dragoonis/gists{/gist_id}","starred_url":"https://api.github.com/users/dragoonis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragoonis/subscriptions","organizations_url":"https://api.github.com/users/dragoonis/orgs","repos_url":"https://api.github.com/users/dragoonis/repos","events_url":"https://api.github.com/users/dragoonis/events{/privacy}","received_events_url":"https://api.github.com/users/dragoonis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-07-12T09:59:59Z","updated_at":"2018-07-13T09:07:52Z","closed_at":null,"author_association":"NONE","body":"As per the project docs, you can symlink `robo` to `project/vendor/bin/robo`.\r\n\r\nHowever when I type `robo` it doesn't know where to find my RoboFile, and so I just get the generic robo output, and none of my project's tasks are shown.\r\n\r\nproject name is `dcop`\r\nI only see my tasks when I do:\r\n\r\n```\r\ncd customername-dcop/dcop_toolkit\r\ndcop\r\n```\r\n\r\nThis isn't good DX as i want the developers to be able to run `dcop` command wherever they are on their terminal."},"comment":{"url":"https://api.github.com/repos/consolidation/Robo/issues/comments/404774641","html_url":"https://github.com/consolidation/Robo/issues/749#issuecomment-404774641","issue_url":"https://api.github.com/repos/consolidation/Robo/issues/749","id":404774641,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDc3NDY0MQ==","user":{"login":"dragoonis","id":146321,"node_id":"MDQ6VXNlcjE0NjMyMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/146321?v=4","gravatar_id":"","url":"https://api.github.com/users/dragoonis","html_url":"https://github.com/dragoonis","followers_url":"https://api.github.com/users/dragoonis/followers","following_url":"https://api.github.com/users/dragoonis/following{/other_user}","gists_url":"https://api.github.com/users/dragoonis/gists{/gist_id}","starred_url":"https://api.github.com/users/dragoonis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dragoonis/subscriptions","organizations_url":"https://api.github.com/users/dragoonis/orgs","repos_url":"https://api.github.com/users/dragoonis/repos","events_url":"https://api.github.com/users/dragoonis/events{/privacy}","received_events_url":"https://api.github.com/users/dragoonis/received_events","type":"User","site_admin":false},"created_at":"2018-07-13T09:07:52Z","updated_at":"2018-07-13T09:07:52Z","author_association":"NONE","body":"@greg-1-anderson \r\nturns out bash doesn't support aliases by default (as it's non-interactive) and you need to do a `shopt` thing .. I didn't get it working in the end.\r\n\r\nI cheated a bit and inside the bash script just use `DCOP_COMMAND` done this in the end:\r\n\r\n```\r\nDCOP_COMMAND=\"${PROJECT}/dcop_toolkit/vendor/bin/robo --load-from=${ROBOFILE_PATH}\"\r\n\r\nfunction setup_dcop_project() {\r\n  ${DCOP_COMMAND} env_setup\r\n}\r\n\r\n\r\nfunction install_frontend() {\r\n  ${DCOP_COMMAND} composer\r\n  ${DCOP_COMMAND} frontend_node_setup\r\n  ${DCOP_COMMAND} frontend_node_gen\r\n}\r\n\r\nfunction setup_dcop_command() {\r\n    if [[ \"$SHELL\" == *\"zsh\"* ]]; then\r\n    echo \"alias dcop='${PROJECT}/dcop_toolkit/vendor/bin/robo --load-from=${ROBOFILE_PATH}'\" >> ~/.zshrc\r\n  else\r\n    echo \"alias dcop='${PROJECT}/dcop_toolkit/vendor/bin/robo --load-from=${ROBOFILE_PATH}'\" >> ~/.bash_profile\r\n  fi\r\n}\r\n\r\nsetup_dcop_project"}}
{"actor":{"display_login":"dragoonis"}}