{"action":"opened","issue":{"url":"https://api.github.com/repos/kowainik/life-sync/issues/31","repository_url":"https://api.github.com/repos/kowainik/life-sync","labels_url":"https://api.github.com/repos/kowainik/life-sync/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/kowainik/life-sync/issues/31/comments","events_url":"https://api.github.com/repos/kowainik/life-sync/issues/31/events","html_url":"https://github.com/kowainik/life-sync/issues/31","id":335848034,"node_id":"MDU6SXNzdWUzMzU4NDgwMzQ=","number":31,"title":"Show each called command?","user":{"login":"ChShersh","id":4276606,"node_id":"MDQ6VXNlcjQyNzY2MDY=","avatar_url":"https://avatars0.githubusercontent.com/u/4276606?v=4","gravatar_id":"","url":"https://api.github.com/users/ChShersh","html_url":"https://github.com/ChShersh","followers_url":"https://api.github.com/users/ChShersh/followers","following_url":"https://api.github.com/users/ChShersh/following{/other_user}","gists_url":"https://api.github.com/users/ChShersh/gists{/gist_id}","starred_url":"https://api.github.com/users/ChShersh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChShersh/subscriptions","organizations_url":"https://api.github.com/users/ChShersh/orgs","repos_url":"https://api.github.com/users/ChShersh/repos","events_url":"https://api.github.com/users/ChShersh/events{/privacy}","received_events_url":"https://api.github.com/users/ChShersh/received_events","type":"User","site_admin":false},"labels":[{"id":962004451,"node_id":"MDU6TGFiZWw5NjIwMDQ0NTE=","url":"https://api.github.com/repos/kowainik/life-sync/labels/UX","name":"UX","color":"3791d6","default":false},{"id":962004225,"node_id":"MDU6TGFiZWw5NjIwMDQyMjU=","url":"https://api.github.com/repos/kowainik/life-sync/labels/git/hub","name":"git/hub","color":"bfdadc","default":false},{"id":752839664,"node_id":"MDU6TGFiZWw3NTI4Mzk2NjQ=","url":"https://api.github.com/repos/kowainik/life-sync/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-26T14:30:45Z","updated_at":"2018-06-26T14:30:45Z","closed_at":null,"author_association":"MEMBER","body":"I noticed that sometimes it might be useful to see what shell command is actually executed.\r\n\r\nThis can be easily done by patching this instance and printing called command (we only need to decide how to print commands):\r\n\r\nhttps://github.com/kowainik/life-sync/blob/aef64e4e51b80b8b2b43973ed29e9fb7e1a1b0c4/src/Life/Shell.hs#L45-L46\r\n\r\nWhat is more difficult, is implement this feature depending on some runtime value flag, like `--verbose`. But I think that showing each shell called command is a good default. By pattern-matching on `cmd` we can even show different cool unicode symbols for `git` command and other commands, like this:\r\n\r\n```\r\n★ git fetch origin master\r\n✔ hub create\r\n$ cd dotfiles\r\n```\r\n\r\nWith better unicode symbols probably."}}
{"actor":{"display_login":"ChShersh"}}