Revive `mach pastebin` for use with the new paste tool
Categories
(Firefox Build System :: General, task)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: sheehan, Assigned: sheehan)
References
Details
Attachments
(1 file)
In bug 1480362 we killed mach pastebin
, since the service it pasted to was being decommissioned. Now that paste.mozilla.org
is around, we should bring it back.
I've got a patch to do this, but I found a bug with the API endpoint for the new service.
Assignee | ||
Comment 1•5 years ago
|
||
This commit re-implements mach pastebin
for use with the new Mozilla
pastebin tool (paste.mozilla.org). As with the old implementation, the
tool supports passing a file for upload as well as reading content to
paste from stdin.
dpaste
(the software that runs paste.mo
) is supposed to support
sniffing the correct syntax highlighter from the given filename, but
this feature does not seem to work (both on paste.mo
nor dpaste.de
).
Instead we have a mapping of known filename extensions to known available
highlighters on paste.mo
. mach paste
will attempt to guess a
highlighter from the file extension or the basename of the file if none
is available.
Comment 3•5 years ago
|
||
bugherder |
Description
•