{"action":"created","issue":{"url":"https://api.github.com/repos/minishift/minishift/issues/724","repository_url":"https://api.github.com/repos/minishift/minishift","labels_url":"https://api.github.com/repos/minishift/minishift/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/minishift/minishift/issues/724/comments","events_url":"https://api.github.com/repos/minishift/minishift/issues/724/events","html_url":"https://github.com/minishift/minishift/issues/724","id":220601130,"number":724,"title":"Bad look and feel around \"minishift config view\" output","user":{"login":"amitkrout","id":19851115,"avatar_url":"https://avatars1.githubusercontent.com/u/19851115?v=3","gravatar_id":"","url":"https://api.github.com/users/amitkrout","html_url":"https://github.com/amitkrout","followers_url":"https://api.github.com/users/amitkrout/followers","following_url":"https://api.github.com/users/amitkrout/following{/other_user}","gists_url":"https://api.github.com/users/amitkrout/gists{/gist_id}","starred_url":"https://api.github.com/users/amitkrout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitkrout/subscriptions","organizations_url":"https://api.github.com/users/amitkrout/orgs","repos_url":"https://api.github.com/users/amitkrout/repos","events_url":"https://api.github.com/users/amitkrout/events{/privacy}","received_events_url":"https://api.github.com/users/amitkrout/received_events","type":"User","site_admin":false},"labels":[{"id":403874607,"url":"https://api.github.com/repos/minishift/minishift/labels/kind/bug","name":"kind/bug","color":"84b6eb","default":false},{"id":503456382,"url":"https://api.github.com/repos/minishift/minishift/labels/priority/major","name":"priority/major","color":"e99695","default":false},{"id":520000584,"url":"https://api.github.com/repos/minishift/minishift/labels/status/needs-info","name":"status/needs-info","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-10T10:26:44Z","updated_at":"2017-04-10T16:53:04Z","closed_at":null,"body":"This is more towards a cosmetic issue around \"minishift config view\". \r\n```\r\nEnvironment : \r\nminishift v1.0.0-rc.1\r\n```\r\n\r\n```\r\n$minishift config set cpus 4\r\n$minishift config set memory 2096\r\n$ minishift config view\r\n- cpus                 : 4\r\n- memory               : 2096$\r\n```\r\nThe output would be better if it looks like this \r\n```\r\n$ minishift config view\r\n- cpus                 : 4\r\n- memory               : 2096\r\n$\r\n```"},"comment":{"url":"https://api.github.com/repos/minishift/minishift/issues/comments/293010545","html_url":"https://github.com/minishift/minishift/issues/724#issuecomment-293010545","issue_url":"https://api.github.com/repos/minishift/minishift/issues/724","id":293010545,"user":{"login":"agajdosi","id":22000268,"avatar_url":"https://avatars0.githubusercontent.com/u/22000268?v=3","gravatar_id":"","url":"https://api.github.com/users/agajdosi","html_url":"https://github.com/agajdosi","followers_url":"https://api.github.com/users/agajdosi/followers","following_url":"https://api.github.com/users/agajdosi/following{/other_user}","gists_url":"https://api.github.com/users/agajdosi/gists{/gist_id}","starred_url":"https://api.github.com/users/agajdosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agajdosi/subscriptions","organizations_url":"https://api.github.com/users/agajdosi/orgs","repos_url":"https://api.github.com/users/agajdosi/repos","events_url":"https://api.github.com/users/agajdosi/events{/privacy}","received_events_url":"https://api.github.com/users/agajdosi/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T16:53:04Z","updated_at":"2017-04-10T16:53:04Z","body":"@hferentschik @praveenkumar I am facing problems with `--format` flag of `minishift config view` command. For integration tests I would like to verify that expected values are in stdout of minishift config view. However extra blank spaces are not so friendly, so I tried to use --format flag.\r\n\r\nI would expect that using default string mentioned in help of command \r\n`\"- {{.ConfigKey | printf \"%-21s\"}}: {{.ConfigValue}\"` will print same output as without flag. But it throws an error:  ```E0410 17:44:48.087952   24007 view.go:80] Error creating view template: template: view:1: unexpected \"%\" in operand``` Seems like problem with quotes.\r\n\r\nTried it with combination of \" and ', but no luck. Also tried to use native value directly taken from view.go: `\"- {{.ConfigKey | printf \\\"%-21s\\\"}}: {{.ConfigValue}}\\n\"`. Also nothing.\r\n\r\nWhat I have find as a workaround, is to define the format string on two lines:\r\n```\r\n[agajdosi@dhcp-24-156 ~]$ minishift config view --format \"-{{.ConfigKey}}:{{.ConfigValue}}\r\n> \"\r\n-disk-size:25g\r\n-memory:3333[agajdosi@dhcp-24-156 ~]$ \r\n```\r\nHowever this is still ugly. Is it expected to be like this, am I overlooking something or is it behaving badly?"}}
{"actor":{"display_login":"agajdosi"}}