Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-model
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Dandrimont
swh-model
Commits
0815880a
Commit
0815880a
authored
5 years ago
by
David Douard
Browse files
Options
Downloads
Patches
Plain Diff
setup: register the 'identify' cli subcommand
parent
60c3f7d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
requirements-swh.txt
+1
-0
1 addition, 0 deletions
requirements-swh.txt
setup.py
+2
-0
2 additions, 0 deletions
setup.py
swh/model/cli.py
+2
-2
2 additions, 2 deletions
swh/model/cli.py
with
5 additions
and
2 deletions
requirements-swh.txt
+
1
−
0
View file @
0815880a
swh.core >= 0.0.60
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
0
View file @
0815880a
...
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
swh/model/cli.py
+
2
−
2
View file @
0815880a
...
...
@@ -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
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment