Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Software Heritage virtual environment packaging manifests
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
Container Registry
Model registry
Operate
Terraform modules
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
Antoine Lambert
Software Heritage virtual environment packaging manifests
Commits
3b8afeb4
Verified
Commit
3b8afeb4
authored
1 year ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
Adapt app_manager subcommand from list to list-dependent-apps
Refs.
swh/infra/sysadm-environment#4724
parent
70bce568
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/app_manager.py
+3
-3
3 additions, 3 deletions
scripts/app_manager.py
with
3 additions
and
3 deletions
scripts/app_manager.py
+
3
−
3
View file @
3b8afeb4
...
...
@@ -167,7 +167,7 @@ def list_apps(apps_dir: Path) -> Iterator[str]:
yield
req_file
.
parent
.
stem
@app.command
(
"
list
"
)
@app.command
(
"
list
-dependent-apps
"
)
@click.option
(
"
-a
"
,
"
--application
"
,
"
application
"
,
default
=
None
,
help
=
"
Application name
"
)
...
...
@@ -175,11 +175,11 @@ def list_apps(apps_dir: Path) -> Iterator[str]:
"
-v
"
,
"
--version
"
,
"
version
"
,
default
=
None
,
help
=
"
Version of the application
"
)
@click.pass_context
def
list
(
ctx
,
application
:
str
,
version
:
str
)
->
None
:
def
list
_dependent_apps
(
ctx
,
application
:
str
,
version
:
str
)
->
None
:
"""
With no parameters, list all known applications with a requirements.txt. With
application and version, list known applications (with requirements.txt) whose
constraint does not match exactly application & version. Applications without
constraint of `application` are ignored
.
constraint of `application` are ignored.
"""
absolute_apps_dirpath
=
ctx
.
obj
[
"
apps_dir
"
]
...
...
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