{"comment":{"url":"https://api.github.com/repos/xwp/wp-cli-ssh/comments/17739206","html_url":"https://github.com/xwp/wp-cli-ssh/commit/6e2d29bfc95a2d2fa6fd5a985042c6f1428dc5e6#commitcomment-17739206","id":17739206,"user":{"login":"westonruter","id":134745,"avatar_url":"https://avatars.githubusercontent.com/u/134745?v=3","gravatar_id":"","url":"https://api.github.com/users/westonruter","html_url":"https://github.com/westonruter","followers_url":"https://api.github.com/users/westonruter/followers","following_url":"https://api.github.com/users/westonruter/following{/other_user}","gists_url":"https://api.github.com/users/westonruter/gists{/gist_id}","starred_url":"https://api.github.com/users/westonruter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/westonruter/subscriptions","organizations_url":"https://api.github.com/users/westonruter/orgs","repos_url":"https://api.github.com/users/westonruter/repos","events_url":"https://api.github.com/users/westonruter/events{/privacy}","received_events_url":"https://api.github.com/users/westonruter/received_events","type":"User","site_admin":false},"position":16,"line":105,"path":"wp-cli-ssh.php","commit_id":"6e2d29bfc95a2d2fa6fd5a985042c6f1428dc5e6","created_at":"2016-06-03T21:43:25Z","updated_at":"2016-06-03T21:43:25Z","body":"@danielbachhuber it's a placeholder in the `$cmd_prefix` for where the pseudo-terminal arg should go. The flag ensures that the TTY state from the client is preserved on the SSH connection.\r\n\r\nFor example, if you just do straight `wp post list` on the command line, you get a nicely displayed table. If you however do `wp post list > posts.txt` then the table is absent and it is instead in CSV format. The pseudo-TTY flag allows us to replicate this over an SSH connection.\r\n\r\nFor example, `ssh example.com -t 'wp post list'` will show you a table as if you were on the command line on that server, whereas `ssh example.com -T 'wp post list'` will force it to behave like it is piping out to a file and you'll get CSV back.\r\n\r\nFrom the SSH(1) manpage:\r\n\r\n````\r\n     -T      Disable pseudo-terminal allocation.\r\n\r\n     -t      Force pseudo-terminal allocation.  This can be used to execute\r\n             arbitrary screen-based programs on a remote machine, which can be\r\n             very useful, e.g. when implementing menu services.  Multiple -t\r\n             options force tty allocation, even if ssh has no local tty.\r\n```"}}
{"actor":{"display_login":"westonruter"}}