Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-deposit
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
Model registry
Operate
Environments
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
Platform
Development
swh-deposit
Commits
f6ffddb9
Verified
Commit
f6ffddb9
authored
5 years ago
by
Antoine R. Dumont
Browse files
Options
Downloads
Patches
Plain Diff
deposit.cli.client: Update docstrings
parent
41fb9949
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!27
Update docs (getting-started, metadata) with latest changes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swh/deposit/cli/client.py
+12
-9
12 additions, 9 deletions
swh/deposit/cli/client.py
with
12 additions
and
9 deletions
swh/deposit/cli/client.py
+
12
−
9
View file @
f6ffddb9
...
...
@@ -134,19 +134,22 @@ def client_command_parse_input(
By acceptable, we mean:
- A multipart deposit (create or update) needs both an
existing software archive and an existing metadata file
- A multipart deposit (create or update) requires:
- A binary deposit (create/update) needs an existing
software archive
- an existing software archive
- an existing metadata file or author(s) and name provided in
params
- A
metadata
deposit (create/update)
need
s an existing
metadata fil
e
- A
binary
deposit (create/update)
require
s an existing
software
archiv
e
- A deposit update needs a deposit_id to be provided
- A metadata deposit (create/update) requires an existing metadata
file or author(s) and name provided in params
This won
'
t prevent all failure cases though. The remaining
errors are already dealt with the underlying api client.
- A deposit update requires a deposit_id
This will not prevent all failure cases though. The remaining
errors are already dealt with by the underlying api client.
Raises:
InputError explaining the issue
...
...
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