Skip to content
Snippets Groups Projects
Commit 0815880a authored by David Douard's avatar David Douard
Browse files

setup: register the 'identify' cli subcommand

parent 60c3f7d4
No related branches found
No related tags found
No related merge requests found
swh.core >= 0.0.60
......@@ -73,6 +73,8 @@ setup(
entry_points='''
[console_scripts]
swh-identify=swh.model.cli:identify
[swh.cli.subcommands]
identify=swh.model.cli:identify
''',
classifiers=[
"Programming Language :: Python :: 3",
......
......@@ -90,13 +90,13 @@ def identify(obj_type, verify, show_filename, follow_symlinks, objects):
Examples:
\b
$ swh-identify fork.c kmod.c sched/deadline.c
$ swh identify fork.c kmod.c sched/deadline.c
swh:1:cnt:2e391c754ae730bd2d8520c2ab497c403220c6e3 fork.c
swh:1:cnt:0277d1216f80ae1adeed84a686ed34c9b2931fc2 kmod.c
swh:1:cnt:57b939c81bce5d06fa587df8915f05affbe22b82 sched/deadline.c
\b
$ swh-identify --no-filename /usr/src/linux/kernel/
$ swh identify --no-filename /usr/src/linux/kernel/
swh:1:dir:f9f858a48d663b3809c9e2f336412717496202ab
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment