{"action":"created","issue":{"url":"https://api.github.com/repos/krupan/albion/issues/2","repository_url":"https://api.github.com/repos/krupan/albion","labels_url":"https://api.github.com/repos/krupan/albion/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/krupan/albion/issues/2/comments","events_url":"https://api.github.com/repos/krupan/albion/issues/2/events","html_url":"https://github.com/krupan/albion/issues/2","id":176018872,"number":2,"title":"Make it easier to write shell completion code","user":{"login":"cmarqu","id":360986,"avatar_url":"https://avatars.githubusercontent.com/u/360986?v=3","gravatar_id":"","url":"https://api.github.com/users/cmarqu","html_url":"https://github.com/cmarqu","followers_url":"https://api.github.com/users/cmarqu/followers","following_url":"https://api.github.com/users/cmarqu/following{/other_user}","gists_url":"https://api.github.com/users/cmarqu/gists{/gist_id}","starred_url":"https://api.github.com/users/cmarqu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmarqu/subscriptions","organizations_url":"https://api.github.com/users/cmarqu/orgs","repos_url":"https://api.github.com/users/cmarqu/repos","events_url":"https://api.github.com/users/cmarqu/events{/privacy}","received_events_url":"https://api.github.com/users/cmarqu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-09T14:09:11Z","updated_at":"2016-09-21T04:22:22Z","closed_at":null,"body":"In order to write shell tab completion code for e.g. ``compgen``, it is helpful to get a list of space-separated items from somewhere. It's best if \"somewhere\" is the tool to be completed itself.\r\nSo if I wanted to complete the configs, it would be good if albion's ``list-configs`` would either be modified to return that list (and print the current format with ``list-configs-verbose``), or add a new command like ``list-configs-for-completion``. \r\n\r\nThe question now is what to return there - taking the example shipped with albion, it could be \"mypath/1.0\", a format which albion should then be able to digest, or just \"mypath\", with the \"1.0\" to be completed in a second step, which would then need another command like ``list-versions``.\r\n\r\n(Same for the envs of course.)\r\n\r\n(And don't let this ticket spoil your vacation, have fun :)"},"comment":{"url":"https://api.github.com/repos/krupan/albion/issues/comments/248507937","html_url":"https://github.com/krupan/albion/issues/2#issuecomment-248507937","issue_url":"https://api.github.com/repos/krupan/albion/issues/2","id":248507937,"user":{"login":"krupan","id":1970766,"avatar_url":"https://avatars.githubusercontent.com/u/1970766?v=3","gravatar_id":"","url":"https://api.github.com/users/krupan","html_url":"https://github.com/krupan","followers_url":"https://api.github.com/users/krupan/followers","following_url":"https://api.github.com/users/krupan/following{/other_user}","gists_url":"https://api.github.com/users/krupan/gists{/gist_id}","starred_url":"https://api.github.com/users/krupan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krupan/subscriptions","organizations_url":"https://api.github.com/users/krupan/orgs","repos_url":"https://api.github.com/users/krupan/repos","events_url":"https://api.github.com/users/krupan/events{/privacy}","received_events_url":"https://api.github.com/users/krupan/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T04:22:22Z","updated_at":"2016-09-21T04:22:22Z","body":"I added three new commands in commit 5dccac643eda271d2f5180f5b9e1ec3e738a1f4c that hopefully fit the bill:\r\n\r\nlist-envs-for-completion\r\nlist-configs-for-completion\r\nlist-versions\r\n\r\nIf those work please close this issue."}}
{"actor":{"display_login":"krupan"}}