{"action":"created","issue":{"url":"https://api.github.com/repos/nir0s/ghost/issues/63","repository_url":"https://api.github.com/repos/nir0s/ghost","labels_url":"https://api.github.com/repos/nir0s/ghost/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/nir0s/ghost/issues/63/comments","events_url":"https://api.github.com/repos/nir0s/ghost/issues/63/events","html_url":"https://github.com/nir0s/ghost/issues/63","id":184943598,"number":63,"title":"Allow to read/write from/to files","user":{"login":"nir0s","id":2003076,"avatar_url":"https://avatars.githubusercontent.com/u/2003076?v=3","gravatar_id":"","url":"https://api.github.com/users/nir0s","html_url":"https://github.com/nir0s","followers_url":"https://api.github.com/users/nir0s/followers","following_url":"https://api.github.com/users/nir0s/following{/other_user}","gists_url":"https://api.github.com/users/nir0s/gists{/gist_id}","starred_url":"https://api.github.com/users/nir0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nir0s/subscriptions","organizations_url":"https://api.github.com/users/nir0s/orgs","repos_url":"https://api.github.com/users/nir0s/repos","events_url":"https://api.github.com/users/nir0s/events{/privacy}","received_events_url":"https://api.github.com/users/nir0s/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nir0s/ghost/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T20:17:50Z","updated_at":"2016-10-25T07:23:14Z","closed_at":null,"body":"It would be nice to be able to directly `get` a value from a file and `put` something directly into a file like so:\r\n\r\n```bash\r\nghost put my_ssh_key --from-file ~/.ssh/my_ssh_key\r\n\r\nghost get my_ssh_key --to-file ~/.ssh/my_ssh_key\r\n```\r\n\r\nCurrently, the only way to `put` from a file is to do something like this:\r\n\r\n```bash\r\nghost put my_ssh_key ssh_key=\"$(cat ~/.ssh/my_ssh_key)\"\r\n```\r\n\r\nand getting to a file is quite annoying unless you use `ghost get ... -j`, pipe to jq and then to a file somehow.\r\n\r\nPutting to a file will result in a stash's key having a single key in its value's dict while getting to a file will verify that the dict only has a single key in its value's dict otherwise should notify and fail."},"comment":{"url":"https://api.github.com/repos/nir0s/ghost/issues/comments/255957256","html_url":"https://github.com/nir0s/ghost/issues/63#issuecomment-255957256","issue_url":"https://api.github.com/repos/nir0s/ghost/issues/63","id":255957256,"user":{"login":"nir0s","id":2003076,"avatar_url":"https://avatars.githubusercontent.com/u/2003076?v=3","gravatar_id":"","url":"https://api.github.com/users/nir0s","html_url":"https://github.com/nir0s","followers_url":"https://api.github.com/users/nir0s/followers","following_url":"https://api.github.com/users/nir0s/following{/other_user}","gists_url":"https://api.github.com/users/nir0s/gists{/gist_id}","starred_url":"https://api.github.com/users/nir0s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nir0s/subscriptions","organizations_url":"https://api.github.com/users/nir0s/orgs","repos_url":"https://api.github.com/users/nir0s/repos","events_url":"https://api.github.com/users/nir0s/events{/privacy}","received_events_url":"https://api.github.com/users/nir0s/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T07:23:14Z","updated_at":"2016-10-25T07:23:14Z","body":"As per #64, (`ghost get key VALUE_NAME`) you can easily write to a file by redirecting:\r\n\r\n```bash\r\n$ ghost get key value_name > my_file\r\n```\r\n\r\nso I think we should wait with this"}}
{"actor":{"display_login":"nir0s"}}