HomeSoftware Heritage

cli: add support for reading a file content from stdin in 'swh identify' command

Description

cli: add support for reading a file content from stdin in 'swh identify' command

This allows for example to type:

curl -s https://archive.softwareheritage.org/browse/content/sha1_git:64582b78792cd6c2d67d35da5a11bb80886a6409/raw/ | swh identify
swh:1:cnt:64582b78792cd6c2d67d35da5a11bb80886a6409	-

Details

Provenance
douarddaAuthored on Jan 29 2020, 2:55 PM
douarddaPushed on Jan 29 2020, 3:49 PM
Differential Revision
D2599: cli: add support for reading a file content from stdin in 'swh identify' command
Parents
rDMOD16e4425a8a99: model: Fix sphinx warning
Branches
Unknown
Tags
Unknown
Build Status
Buildable 10353
Build 15393: test-and-buildJenkins