{"action":"closed","issue":{"url":"https://api.github.com/repos/influxdb/influxdb/issues/4719","labels_url":"https://api.github.com/repos/influxdb/influxdb/issues/4719/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb/issues/4719/comments","events_url":"https://api.github.com/repos/influxdb/influxdb/issues/4719/events","html_url":"https://github.com/influxdb/influxdb/issues/4719","id":115983849,"number":4719,"title":"CLI history should skip blank lines","user":{"login":"otoolep","id":536312,"avatar_url":"https://avatars.githubusercontent.com/u/536312?v=3","gravatar_id":"","url":"https://api.github.com/users/otoolep","html_url":"https://github.com/otoolep","followers_url":"https://api.github.com/users/otoolep/followers","following_url":"https://api.github.com/users/otoolep/following{/other_user}","gists_url":"https://api.github.com/users/otoolep/gists{/gist_id}","starred_url":"https://api.github.com/users/otoolep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otoolep/subscriptions","organizations_url":"https://api.github.com/users/otoolep/orgs","repos_url":"https://api.github.com/users/otoolep/repos","events_url":"https://api.github.com/users/otoolep/events{/privacy}","received_events_url":"https://api.github.com/users/otoolep/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/influxdb/influxdb/labels/difficulty/low","name":"difficulty/low","color":"A8DBA8"},{"url":"https://api.github.com/repos/influxdb/influxdb/labels/status/help-wanted","name":"status/help-wanted","color":"D1F2A5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-09T22:39:22Z","updated_at":"2015-11-14T13:25:58Z","closed_at":"2015-11-14T13:25:58Z","body":"Started with https://github.com/influxdb/influxdb/pull/4702\r\n\r\nThe 'history' command in the CLI should not show blank lines. E.g.:\r\n```\r\n> history\r\nalter retention policy \"default\" on db duration 3400s\r\nalter retention policy \"default\" on db duration 10m\r\nshow retention policies on db\r\nshow shards\r\n\r\nshow shards\r\n\r\nshow shards\r\n\r\nshow shards\r\n\r\nshow shards\r\n```\r\n\r\nThis can either be done by a) not writing blank lines to the history file, or b) skipping them during display. Option a) might be easiest."}}