{"action":"opened","issue":{"url":"https://api.github.com/repos/openshift/origin/issues/10362","repository_url":"https://api.github.com/repos/openshift/origin","labels_url":"https://api.github.com/repos/openshift/origin/issues/10362/labels{/name}","comments_url":"https://api.github.com/repos/openshift/origin/issues/10362/comments","events_url":"https://api.github.com/repos/openshift/origin/issues/10362/events","html_url":"https://github.com/openshift/origin/issues/10362","id":170720594,"number":10362,"title":"Proposal: Generic way of \"suggesting\" commands from a usage template","user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-11T19:01:38Z","updated_at":"2016-08-11T19:01:38Z","closed_at":null,"body":"Some commands might improve their usability by suggesting other openshift commands to retrieve extra information that is needed, or simply to indicate which commands could be executed next by the user (e.g. creating a flow between `oc new-project` and `oc new-app` by suggesting `new-app` somewhere on the usage template of the `new-project` command).\r\n\r\nIt would be nice to have a standard way of setting these command suggestions. An idea could be to export a function from `https://github.com/openshift/origin/blob/master/pkg/cmd/templates/templater.go` that receives a pointer to the command making the suggestion, the string suggesting which command to use, and perhaps a function that returns a boolean indicating in which conditions to output this suggestion (or some other case). This function could be saved somewhere in `templater.go` and be returned by another generic function that gets called from the actual template.\r\n\r\nJust an idea, but open to further thoughts.\r\n\r\ncc @fabianofranz @liggitt @deads2k @smarterclayton "}}
{"actor":{"display_login":"juanvallejo"}}