{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-projects/spring-shell/issues/105","repository_url":"https://api.github.com/repos/spring-projects/spring-shell","labels_url":"https://api.github.com/repos/spring-projects/spring-shell/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-shell/issues/105/comments","events_url":"https://api.github.com/repos/spring-projects/spring-shell/issues/105/events","html_url":"https://github.com/spring-projects/spring-shell/issues/105","id":178004171,"number":105,"title":"Is is possible to override the default Date converter?","user":{"login":"felipecao","id":547965,"avatar_url":"https://avatars.githubusercontent.com/u/547965?v=3","gravatar_id":"","url":"https://api.github.com/users/felipecao","html_url":"https://github.com/felipecao","followers_url":"https://api.github.com/users/felipecao/followers","following_url":"https://api.github.com/users/felipecao/following{/other_user}","gists_url":"https://api.github.com/users/felipecao/gists{/gist_id}","starred_url":"https://api.github.com/users/felipecao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipecao/subscriptions","organizations_url":"https://api.github.com/users/felipecao/orgs","repos_url":"https://api.github.com/users/felipecao/repos","events_url":"https://api.github.com/users/felipecao/events{/privacy}","received_events_url":"https://api.github.com/users/felipecao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T09:00:01Z","updated_at":"2016-09-20T09:00:01Z","closed_at":null,"body":"Hello, everyone,\r\n\r\nI'm working on a CLI and I'd like to have a Date parameter that accepts values in `yyyy-MM-dd HH:mm:ss` format.\r\n\r\nI've implemented a `Converter<Date>` class and marked it as a `@Component` but it never gets invoked. \r\n\r\nIs it possible to override default converters? Or maybe I'm doing something wrong?\r\n\r\nMy command looks like this:\r\n\r\n```\r\n@Component\r\npublic class MyCommands implements CommandMarker {\r\n\r\n    @CliCommand(value = \"addEntity\", help = \"Command to add entities to the DB\")\r\n    public String addEntity(\r\n        @CliOption(key = \"date\", mandatory = true, help = \"Set the date (format: yyyy-MM-dd HH:mm:ss)\") final Date date\r\n    ) throws ParseException\r\n    {\r\n        (...)\r\n    }\r\n}\r\n```"}}
{"actor":{"display_login":"felipecao"}}