Page MenuHomeSoftware Heritage

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

Authored by douardda on Jan 29 2020, 2:57 PM.

Details

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

Diff Detail

Repository
rDMOD Data model
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision is now accepted and ready to land.Jan 29 2020, 2:59 PM
zack retitled this revision from cli: add support for reading a file content fron stdin in 'swh identify' command to cli: add support for reading a file content from stdin in 'swh identify' command.Jan 29 2020, 3:00 PM
vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/model/cli.py
174

objects = ['-']

This revision now requires changes to proceed.Jan 29 2020, 3:15 PM
swh/model/cli.py
174

It works also with a string but I guess you are right :-)

This revision is now accepted and ready to land.Jan 29 2020, 3:47 PM