Page MenuHomeSoftware Heritage

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

Authored by douardda on Wed, Jan 29, 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

douardda created this revision.Wed, Jan 29, 2:57 PM
zack accepted this revision.Wed, Jan 29, 2:59 PM
This revision is now accepted and ready to land.Wed, Jan 29, 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.Wed, Jan 29, 3:00 PM
vlorentz requested changes to this revision.Wed, Jan 29, 3:15 PM
vlorentz added a subscriber: vlorentz.
vlorentz added inline comments.
swh/model/cli.py
175

objects = ['-']

This revision now requires changes to proceed.Wed, Jan 29, 3:15 PM
douardda added inline comments.Wed, Jan 29, 3:22 PM
swh/model/cli.py
175

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

douardda marked an inline comment as done.Wed, Jan 29, 3:23 PM
ardumont accepted this revision.Wed, Jan 29, 3:40 PM
vlorentz accepted this revision.Wed, Jan 29, 3:47 PM
This revision is now accepted and ready to land.Wed, Jan 29, 3:47 PM