{"action":"closed","issue":{"url":"https://api.github.com/repos/memolog/grunt-plistbuddy/issues/2","labels_url":"https://api.github.com/repos/memolog/grunt-plistbuddy/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/memolog/grunt-plistbuddy/issues/2/comments","events_url":"https://api.github.com/repos/memolog/grunt-plistbuddy/issues/2/events","html_url":"https://github.com/memolog/grunt-plistbuddy/issues/2","id":47702445,"number":2,"title":"Add support for task options","user":{"login":"matiassingers","id":938453,"avatar_url":"https://avatars.githubusercontent.com/u/938453?v=3","gravatar_id":"","url":"https://api.github.com/users/matiassingers","html_url":"https://github.com/matiassingers","followers_url":"https://api.github.com/users/matiassingers/followers","following_url":"https://api.github.com/users/matiassingers/following{/other_user}","gists_url":"https://api.github.com/users/matiassingers/gists{/gist_id}","starred_url":"https://api.github.com/users/matiassingers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matiassingers/subscriptions","organizations_url":"https://api.github.com/users/matiassingers/orgs","repos_url":"https://api.github.com/users/matiassingers/repos","events_url":"https://api.github.com/users/matiassingers/events{/privacy}","received_events_url":"https://api.github.com/users/matiassingers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"memolog","id":494278,"avatar_url":"https://avatars.githubusercontent.com/u/494278?v=3","gravatar_id":"","url":"https://api.github.com/users/memolog","html_url":"https://github.com/memolog","followers_url":"https://api.github.com/users/memolog/followers","following_url":"https://api.github.com/users/memolog/following{/other_user}","gists_url":"https://api.github.com/users/memolog/gists{/gist_id}","starred_url":"https://api.github.com/users/memolog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/memolog/subscriptions","organizations_url":"https://api.github.com/users/memolog/orgs","repos_url":"https://api.github.com/users/memolog/repos","events_url":"https://api.github.com/users/memolog/events{/privacy}","received_events_url":"https://api.github.com/users/memolog/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2014-11-04T11:19:54Z","updated_at":"2015-07-07T04:20:58Z","closed_at":"2015-07-07T04:20:58Z","body":"I think the ability to define task-level options in missing in `grunt-plistbuddy`, currently everything except `path` are target-level options.\r\n\r\nI think making `src` a task-level option as well makes a lot of sense.\r\n\r\nIt would make it possible to do something like this:\r\n```js\r\ngrunt.initConfig({\r\n  plistbuddy: {\r\n    options: {\r\n      src: 'YourApp-Info.plist'\r\n    },\r\n    addShortVersion: {\r\n      method: 'Add',\r\n      entry: ':CFBundleShortVersionString',\r\n      type: 'string',\r\n      value: '1.0'\r\n    },\r\n    setShortVersion: {\r\n      method: 'Set',\r\n      entry: ':CFBundleShortVersionString',\r\n      value: '1.0'\r\n    },\r\n    rootInfo: {\r\n      method: 'Set',\r\n      entry: 'PreferenceSpecifiers:1:Key',\r\n      value: '1.0',\r\n      src: 'yourAppDir/Resources/Settings.bundle/Root.plist'\r\n    },\r\n  }\r\n});\r\n```\r\n\r\n----\r\n@memolog before I created a pull-request I just wanted to explain and hear what your thoughts are."}}