{"action":"created","issue":{"url":"https://api.github.com/repos/denysdovhan/textr-cli/issues/1","labels_url":"https://api.github.com/repos/denysdovhan/textr-cli/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/denysdovhan/textr-cli/issues/1/comments","events_url":"https://api.github.com/repos/denysdovhan/textr-cli/issues/1/events","html_url":"https://github.com/denysdovhan/textr-cli/issues/1","id":114480705,"number":1,"title":"CLI options","user":{"login":"denysdovhan","id":3459374,"avatar_url":"https://avatars.githubusercontent.com/u/3459374?v=3","gravatar_id":"","url":"https://api.github.com/users/denysdovhan","html_url":"https://github.com/denysdovhan","followers_url":"https://api.github.com/users/denysdovhan/followers","following_url":"https://api.github.com/users/denysdovhan/following{/other_user}","gists_url":"https://api.github.com/users/denysdovhan/gists{/gist_id}","starred_url":"https://api.github.com/users/denysdovhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denysdovhan/subscriptions","organizations_url":"https://api.github.com/users/denysdovhan/orgs","repos_url":"https://api.github.com/users/denysdovhan/repos","events_url":"https://api.github.com/users/denysdovhan/events{/privacy}","received_events_url":"https://api.github.com/users/denysdovhan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-11-01T17:05:25Z","updated_at":"2015-11-02T18:29:03Z","closed_at":null,"body":"# Discussion about base options\r\n\r\n@iamstarkov and @shuvalov-anton, please leave your suggestions bellow. If you don't mind, let's move the discussion about CLI here. \r\n\r\n## Transformers\r\n\r\n_Few `-t` or `--transforms` options:_\r\n```\r\n$ textr -t typographic-single-spaces -t typographic-quotes\r\n```\r\n\r\n_`-t` or `--transforms` as list of transformers:_\r\n```\r\n$ textr -t typographic-single-spaces,typographic-quotes\r\n```\r\n\r\n_`-t` or `--transforms` throught equal sign:_\r\n```\r\n$ text --transforms=typographic-single-spaces,typographic-quotes\r\n```\r\n\r\n## Input\r\n\r\n_Read from `stdin`:_\r\n```\r\n$ cat foo.md | textr\r\n```\r\n\r\n_Read from file:_\r\n```\r\n$ textr foo.md\r\n```\r\n\r\n## Output\r\n\r\n_Write into `stdout`:_\r\n```\r\n$ smth | textr > bar.md\r\n```\r\n\r\n_Write into file:_\r\n```\r\n$ textr in.md out.md\r\n```\r\n\r\n_`--watch` and `-w`:_\r\n\r\n```\r\n$ textr input.md -w\r\n```\r\n\r\n## Diff\r\n\r\n_Output diff instead of result:_\r\n``` \r\n$ textr --diff\r\n```\r\n\r\n## ~~Cycles~~ (should be removed)\r\n\r\n[Here](https://github.com/shuvalov-anton/textr/blob/master/test/bench.js) is a `--cycle` option, that creates new `tf` instance on every cycle. Do we realy need that option?\r\n\r\n_Create new `tf` on every cycle:_\r\n```\r\n$ textr --cycles\r\n$ textr -c\r\n```\r\n\r\n---\r\n\r\nRef to  https://github.com/shuvalov-anton/textr/issues/1"},"comment":{"url":"https://api.github.com/repos/denysdovhan/textr-cli/issues/comments/153117031","html_url":"https://github.com/denysdovhan/textr-cli/issues/1#issuecomment-153117031","issue_url":"https://api.github.com/repos/denysdovhan/textr-cli/issues/1","id":153117031,"user":{"login":"iamstarkov","id":559321,"avatar_url":"https://avatars.githubusercontent.com/u/559321?v=3","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T18:29:03Z","updated_at":"2015-11-02T18:29:03Z","body":"it's just a wish\n\n\n\n-- \nCheers,\nVladimir Starkov, iamstarkov.com\n"}}