Piotr Bielak
3feaa86696
Pass missing glob flag to pull command ( #5354 )
...
The `--glob` flag is parsed from the command line, but in the
`CmdDataPull` class in the invocation the parameter (`self.args.glob`)
is not passed to the `pull` method implementation. Hence, always the
default value (False) is used. This commit fixes this issue and sets the
`glob` parameter properly.
2021-02-01 14:21:21 +02:00
Saugat Pachhai
a9ccf70439
cmd: imports lazy ( #5226 )
...
They are not a major pain point though
2021-01-07 11:45:58 +05:45
Ioana Grigoropol
fa4bf40eb4
api: add globbing option for pushing ( #5033 )
...
* api: add globbing option for pushing
Related: #4816
Signed-off-by: Ioana Grigoropol <[email protected] >
* api: use utility function for push command
Signed-off-by: Ioana Grigoropol <[email protected] >
2020-12-25 23:50:36 +02:00
Jorge Orpinel
11382cc891
cmd: help output updates (per docs) ( #4999 )
...
* cmd: matching help output to docs
per https://github.com/iterative/dvc.org/pull/1971#pullrequestreview-538749492
and https://github.com/iterative/dvc.org/pull/1978#pullrequestreview-540445147
* fetch: simplify help text
per https://github.com/iterative/dvc.org/pull/1978#pullrequestreview-540447055
* commit: update help output to match iterative/dvc.org/pull/1978
* fetch: update help output to match iterative/dvc.org/pull/1978
* commmit: help output update (again)
* remove: simplify help output
per https://github.com/iterative/dvc.org/pull/1971#pullrequestreview-538749492
* remove: simplify help output
per https://github.com/iterative/dvc.org/pull/1971#pullrequestreview-538749492
* commit: update -h output
per https://github.com/iterative/dvc.org/pull/1989#pullrequestreview-542464568
2020-12-25 06:05:42 +02:00
Ioana Grigoropol and Ruslan Kuprieiev
f51bef040a
pull: add glob option ( #5032 )
...
* api: add glob option for pull command
Related: #4816
Signed-off-by: Ioana Grigoropol <[email protected] >
* api: add globbing utility function
Related: #4816
Signed-off-by: Ioana Grigoropol <[email protected] >
* api: use utility function for pull command
Signed-off-by: Ioana Grigoropol <[email protected] >
* Update dvc/utils/__init__.py
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2020-12-19 21:38:40 +02:00
Jorge Orpinel
56322d0a53
cmd: matching help output to docs ( #4989 )
...
* cmd: matching help output to docs
per https://github.com/iterative/dvc.org/pull/1971#pullrequestreview-538749492
and https://github.com/iterative/dvc.org/pull/1978#pullrequestreview-540445147
* fetch: simplify help text
per https://github.com/iterative/dvc.org/pull/1978#pullrequestreview-540447055
2020-11-30 09:09:11 +02:00
nik123
44392941af
ui: '-j' option now mentions docs ( #4382 )
...
* ui: '-j' option now mentions docs
* ui: copied '-j' default value desc. from cmd ref
2020-08-15 21:41:42 +03:00
Dmitry Petrov and Ruslan Kuprieiev
59409be7ab
pull: target message ( #4192 )
...
* pull: target message
* update fetch/status/etc help
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2020-07-13 02:52:02 +03:00
Casper da Costa-Luis
5d2ac9fca2
completion: update dependency ( #4148 )
...
* completion: use new simpler `shtab` API
* completion: use FILE|DIR
2020-07-02 00:15:39 +03:00
Ruslan Kuprieiev
b3d72e11fe
push/pull/fetch: unhide --run-cache ( #4087 )
...
Related to https://github.com/iterative/dvc.org/issues/1289
2020-06-23 14:41:34 +03:00
Casper da Costa-Luis
061513a2ae
completion: misc fixes ( #4076 )
...
* command: add metavars
- makes help output look the same as before #3921
* deps: update shtab version
Part of #4070
2020-06-22 02:09:43 +03:00
Casper da Costa-Luis
fa0f182028
completion: autogenerate ( #3921 )
...
* cli: split main_parser
* cli: basic parser tree printing
* cli: major completion tidy
* completion: more missing root commands
* completion: much automagic such beauty
- fixes #2985 automatically generate bash completion
* tests: bash completion
* tests: completion: tidy script a little
* minor tidy
* command: positional name consistency
* completion: bash: add logging
* double-check renames and consistency
* cli: add completion subcommand
* ci: completion: update test
* minor logging
* more completion logging verbosity
* fix completion of files
* add shtab
* purge unneeded completion => shtab
* completion: neaten UI
* completion: use `shtab>=0.0.2`
* completion: purge hardcoded completions!
* revert unneeded renames for now
* fix isort
* completion: tidy CLI API
* fix snap build
* fix snap build again
* snap: internally build completion
* allow repo-less completion
* command: tidy headless logic
* use CmdBaseNoRepo
* better DVC-file completion
* merge command.choices -> command.completion
* drop choices class
* remove completion optionals
* tidy docs
2020-06-19 04:54:20 +03:00
Ruslan Kuprieiev
db69def834
status: introduce --show-json ( #3998 )
...
Fixes #1406
2020-06-10 01:51:30 +03:00
Ruslan Kuprieiev
785dcfeef0
push/pull: naively transfer run cache ( #3746 )
...
This is the most simple (aka dumb) implementation for this
functionality that is needed to unblock CICD development.
2020-05-07 16:55:10 +03:00
Casper da Costa-Luis
2bb7257a06
lint: isort pre-commit & misc improvements ( #3749 )
...
* test: clean flake8 config root clutter
* test: pre-commit: add isort
Compatible with black (see https://github.com/timothycrosley/isort/issues/694 )
* lint: reorder imports
* lint: more complex imports
* lint: fix deepsource
* config: isort: add first party dvc
* tests: restyled: add isort
* temp commit to revert before merge
* Revert "temp commit to revert before merge"
This reverts commit 11db0fd8e95fe891597cbb9bf804480909b19e24.
2020-05-06 23:56:07 +03:00
Saugat Pachhai
d00bd4dfe5
pull/fetch/push: add stats ( #3735 )
...
* pull/fetch/push: add stats
* fix typo: s/logging/logger
* pull: make stats detailed, with summary at the bottom
* tests: mock properly, set return_value
* add a line space
2020-05-05 16:10:50 +03:00
nik123
415a85c6be
status: --recursive flag ( #3726 )
...
* status: --recursive flag
* tests: fixed test_status_recursive for Windows platform
2020-05-03 21:12:17 +03:00
Jorge Orpinel
14b213adec
Specify cmd arg names (metavars), et al. ( #3626 )
...
* add: -f arg name from FILE to <filename>
to match dvc.org cmd ref
* dvc: cmd arg names (metavars) to match docs
for #3626
* metrics: update help output to indicate supported types
per #3409
and for #3572
* dvc: reorder subcommands to match docs
for #3608
2020-04-18 16:48:53 +03:00
Ruslan Kuprieiev
7bd473371c
push/pull/status/metrics: add support for --all-commits ( #3587 )
...
First steps for #1691
2020-04-04 19:30:11 +03:00
Nate Gadzhibalaev
f4d91b35d7
CLI: Fixed cmds help strings ( #3566 )
...
This fixes a few command help string outputs that were
cut short because of a typo.
2020-04-01 14:00:16 +03:00
Jorge Orpinel
d2ea180a9a
pull: update help output (-R option) ( #3555 )
2020-03-31 19:53:34 +03:00
Jorge Orpinel
9e7740572c
dvc: update cmd output strings to match docs ( #3471 )
...
* metrics show: update -h output to match docs
per https://github.com/iterative/dvc.org/pull/1014/commits/2c3452119545987f77b764e4aa6fc94d051092a7
* metric: update argument desc per iterative/dvc.org/pull/1014
* metrics: match iterative/dvc.org/pull/1014 again...
using term "formatting" instead of "options"
* list: update help output to match iterative/dvc.org/pull/1014
That's iterative/dvc.org/pull/1014
* dvc: add docstring to open_by_relpath
It's a public fn after all. Similar to Repo class
* help: update cmd output strings to match with docs
* remote: update help output
* term: file descriptor -> file object
* metrics: update add and remove help outputs
per https://github.com/iterative/dvc/pull/3471#pullrequestreview-377170844
* remove: update help output
per https://github.com/iterative/dvc/pull/3471#pullrequestreview-377172394
* root: update help output
per https://github.com/iterative/dvc/pull/3471#pullrequestreview-377173196
2020-03-23 17:40:36 +02:00
Saugat Pachhai and Jorge Orpinel
066ccea733
checkout: show summary by default and introduce --show-changes flag ( #3401 )
...
* checkout: implement --show-changes flag to show detailed checkout details
Show summary by default on checkout
checkout: show directory modified even when files are removed from inside it
checkout: refactor template logic
checkout: change output format
checkout: do not show summary if nothing's changed
checkout: do not show summary if show_changes is specified
checkout: show '/' at the end if it's a directory
rename variable name
test: cover stats for checkout
checkout: show relink as not modified
checkout: remove unwanted message during empty checkout
pull: show summary on checkout
import/get: change external_repo to catch CheckoutError
fix tests and check if path is url
checkout: support external deps/outputs
tests: checkout on external outputs
* fix tests
* checkout: make show changes default and introduce summary flag to show summary
* address suggestions
* exceptions: remove extra spacing on erorr
* Update dvc/command/checkout.py
Co-Authored-By: Jorge Orpinel <[email protected] >
Co-authored-by: Jorge Orpinel <[email protected] >
2020-03-16 16:29:36 +02:00
Jorge Orpinel
b23f43a7e7
term: avoid "under X control" and other help output updates ( #3322 )
...
* get/import: update cmd and url arg descs with correct behavior
* get/import: update path arg desc as well (See previous commit)
* get/imp: udpate help output with simpler terms
per https://github.com/iterative/dvc/pull/3277#pullrequestreview-352650016
* api: url->URL in a docstring
* metrics show: update help output per
per https://github.com/iterative/dvc.org/pull/933#pullrequestreview-351862579
* diff: update `diff` and `metrics diff` help desc to match docs
per https://github.com/iterative/dvc.org/pull/933#pullrequestreview-356890960
* diff: update autocomplete scripts
per https://github.com/iterative/dvc/pull/3308#issuecomment-585220300
* diff: update help output again
per https://github.com/iterative/dvc.org/pull/933#pullrequestreview-356890960
* diff/metrics diff: update help output yet again
per https://github.com/iterative/dvc.org/pull/933#discussion_r378654316
* term" under X control -> tracked by X
2020-02-17 17:24:30 +02:00
Mr. Outis
94a0914bba
py3: get rid of future imports
2019-12-30 19:35:48 -06:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
1dea4030c8
Merge pull request #2331 from kurianbenoy/master
...
remove show-checksums flag for dvc status commmand
2019-08-01 20:58:24 +03:00
kurianbenoy
cba4c45bdb
removed show-checksums for files pull, push, data_sync.py and from test files
2019-07-30 23:34:06 +05:30
Alexander Schepanovski
50b5b87304
dvc: batch push/pull/fetch/status
...
This will speed up cache collection and then run single cloud op for all
collected cache.
Fixes #2308 .
2019-07-30 13:33:01 +03:00
kurianbenoy
7059ccb851
update completion scripts and remove show_checksums from status
2019-07-28 04:56:46 +05:30
Jorge Orpinel
6f5449fb83
term: remove "(s)" and "(are) related to the previous commit
...
PR #2281 feedback
2019-07-18 17:51:20 -06:00
Jorge Orpinel
d4f4126ddd
help: finish singularizing "pipeline" term...
...
(in status and repro command help outputs)
Per #2158
2019-07-18 17:51:20 -06:00
Jorge Orpinel
820ad50df8
commands: remove default=None from argparse add_argument calls
...
Per https://github.com/iterative/dvc/pull/2112#pullrequestreview-255013079
2019-06-27 18:39:46 -05:00
Jorge Orpinel
a927a506a7
command: remove default property from "targets" argparse code in
...
data sync and `commit` commands,
since `None` is the default value for the removed `default` property,
see https://docs.python.org/dev/library/argparse.html#default
2019-06-27 00:26:56 -05:00
Jorge Orpinel
936f941bf0
help: update usage for commands that use the targets argument
2019-06-26 23:25:58 -05:00
Jorge Orpinel
e3f1e61c28
data sync: small improvement continuing #2121
...
and matching https://github.com/jorgeorpinel/dvc.org/commit/dd13134
2019-06-26 21:07:09 -05:00
vibhor98
55d3153734
Reorder commands in pull
2019-06-19 21:42:39 +05:30
Ruslan Kuprieiev
ade4261cf5
Merge pull request #2133 from Suor/push-pull-error-code
...
dvc: return non zero error code on push/pull/fetch error
2019-06-14 20:43:02 +03:00
Alexander Schepanovski
db75693fe1
dvc: return non zero error code on push/pull/fetch error
...
Closes #2038
2019-06-14 23:25:39 +07:00
Sanidhya Mangal
f39bb551d7
fixed: split lines for datasync
2019-06-14 02:49:14 +05:30
Sanidhya Mangal
a831918195
fixed: splited helper text in data sync
2019-06-13 23:07:29 +05:30
Sanidhya Mangal
47cb449165
fixed: whitespace error
2019-06-13 23:00:25 +05:30
Sanidhya Mangal
498bbc647d
fixed: lenghty message in help command
2019-06-13 22:49:39 +05:30
Sanidhya Mangal
cb4a745d1b
updated: help message for shared parent parser
2019-06-12 13:59:07 +05:30
Sanidhya Mangal
d356644754
code formatting: data sync
2019-06-11 18:31:34 +05:30
Sanidhya Mangal
2b3583a30e
patched: shared parser target content
2019-06-11 00:23:54 +05:30
Sanidhya Mangal
e44e3ad127
fixed: merge conflict
2019-06-11 00:19:47 +05:30
Sanidhya Mangal
1c14b8c579
patched: target content for shared parser
2019-06-11 00:17:47 +05:30
Jorge Orpinel
3dffe8e5c0
dvc: i/DVC file[s]?/ -> /DVC-file($1)/
...
Standardizes way to refer to DVC-file(s)
(Related to #2102 )
2019-06-07 03:33:20 -05:00
Mr. Outis
85cd344152
logger: Use a more _pythonic_ logging
...
- Uses a formatter for coloring output
- Move the `progress_aware` decorator logic to the logger itself
- Refactor modules so each one uses their own instance of a logger
Close #1753
2019-04-06 18:19:32 -06:00