Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPasteWorkflow.php
| Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | private function getPaste() { | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| private function createPaste() { | private function createPaste() { | ||||
| $conduit = $this->getConduit(); | $conduit = $this->getConduit(); | ||||
| if (!function_exists('posix_isatty') || posix_isatty(STDIN)) { | if (!function_exists('posix_isatty') || posix_isatty(STDIN)) { | ||||
| $this->writeStatusMessage("Reading paste from stdin...\n"); | $this->writeStatusMessage(pht('Reading paste from stdin...')."\n"); | ||||
| } | } | ||||
| $info = $conduit->callMethodSynchronous( | $info = $conduit->callMethodSynchronous( | ||||
| 'paste.create', | 'paste.create', | ||||
| array( | array( | ||||
| 'content' => file_get_contents('php://stdin'), | 'content' => file_get_contents('php://stdin'), | ||||
| 'title' => $this->title, | 'title' => $this->title, | ||||
| 'language' => $this->language, | 'language' => $this->language, | ||||
| Show All 12 Lines | |||||