Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistPasteWorkflow.php
<?php | <?php | ||||
final class ArcanistPasteWorkflow | final class ArcanistPasteWorkflow | ||||
extends ArcanistArcWorkflow { | extends ArcanistArcWorkflow { | ||||
public function getWorkflowName() { | public function getWorkflowName() { | ||||
return 'paste'; | return 'paste'; | ||||
} | } | ||||
public function getWorkflowInformation() { | public function getWorkflowInformation() { | ||||
$help = pht(<<<EOTEXT | $help = pht(<<<EOTEXT | ||||
Share and grab text using the Paste application. To create a paste, use the | Share and grab text using the Paste application. To create a paste, use the | ||||
"--input" flag or provide the text on stdin: | "--input" flag or provide the text on stdin: | ||||
$ cat list_of_ducks.txt | arc paste | $ cat list_of_ducks.txt | arc paste -- | ||||
$ arc paste --input list_of_ducks.txt | $ arc paste --input list_of_ducks.txt | ||||
To retrieve a paste, specify the paste ID: | To retrieve a paste, specify the paste ID: | ||||
$ arc paste P123 | $ arc paste P123 | ||||
EOTEXT | EOTEXT | ||||
); | ); | ||||
▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines |