Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
pycdstar3
Commits
0ed8356c
Commit
0ed8356c
authored
Jan 16, 2020
by
Marcel Hellkamp
Browse files
Docs and formatting
parent
84c5b873
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/pycdstar3/cli/commands/get.py
View file @
0ed8356c
...
...
@@ -37,7 +37,8 @@ def register(subparsers):
parser
.
add_argument
(
"DST"
,
nargs
=
"?"
,
help
=
"Destination filename, directory or '-' for stdout. (default: '-')"
,
help
=
"Destination filename or directory."
" No parameter or '-' prints to standard output. (default: '-')"
,
)
parser
.
set_defaults
(
main
=
get
)
...
...
@@ -88,7 +89,7 @@ def get(ctx, args): # noqa: C901
if
ispipe
and
out
.
isatty
()
and
not
dl
.
type
.
startswith
(
"text/"
)
and
not
force
:
raise
CliError
(
"Not printing binary data ({}) to a terminal."
"
Use
--force
to override.
"
.
format
(
dl
.
type
)
"
(
--force
not set)
"
.
format
(
dl
.
type
)
)
if
progress
and
not
ctx
.
print
.
quiet
:
...
...
src/pycdstar3/cli/commands/rm.py
View file @
0ed8356c
...
...
@@ -2,9 +2,9 @@
Delete files from an archive.
"""
from
contextlib
import
ExitStack
from
pycdstar3
import
ApiError
# TODO: Delete directories or glob patterns
from
pycdstar3
import
ApiError
def
register
(
subparsers
):
...
...
src/pycdstar3/cli/commands/rma.py
View file @
0ed8356c
...
...
@@ -2,8 +2,6 @@
Remove one or more archives.
"""
from
contextlib
import
ExitStack
# TODO: Delete directories or glob patterns
from
pycdstar3
import
ApiError
...
...
@@ -16,7 +14,7 @@ def register(subparsers):
"-f"
,
"--force"
,
action
=
"store_true"
,
help
=
"Do not prompt and ignore missing archives
"
"
or access errors."
,
help
=
"Do not prompt and ignore missing archives or access errors."
,
)
parser
.
add_argument
(
"-y"
,
"--yes"
,
action
=
"store_true"
,
help
=
"Do not prompt"
)
parser
.
add_argument
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment