Saugat Pachhai
476af100de
ui: migrating rest to the ui.write ( #6176 )
...
* complete migration to ui.write
* fix small bugs
2021-06-21 22:14:59 +03:00
Saugat Pachhai
b9000ed926
pre-commit: update black to 21.5b1 ( #6032 )
...
* pre-commit: update black to 21.5b1
also updated others, but black is more noticeable
* remove magic trailing comma
2021-05-18 15:51:15 +00:00
Batuhan Taskaya
a92bfd272d
get, get-url: add --jobs option ( #5362 )
2021-02-02 15:49:58 +02: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
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
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
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
Jorge Orpinel
7821fa6866
get/import: they don't work with any DVC project, only DVC repos (as well as Git repos) ( #3277 )
...
* 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
2020-02-10 19:43:00 +02:00
Jorge Orpinel
d0139a7826
term: review "revision", "reference", and "hash", "SHA" terms
2020-01-29 00:38:41 -06:00
Jorge Orpinel
69c1aa5bbf
dvc: revert capitalization of logger.exception strings
...
per https://github.com/iterative/dvc/pull/3220#pullrequestreview-347083819
2020-01-23 00:50:24 -06:00
Jorge Orpinel
6364c9ee62
get: refine --show-url description
...
per https://github.com/iterative/dvc/pull/3220#pullrequestreview-347038086
2020-01-23 00:39:10 -06:00
Jorge Orpinel
ee0193ccd3
get: rewrite --show-url description
...
per https://github.com/iterative/dvc.org/pull/936#discussion_r368680473
2020-01-22 20:12:19 -06:00
Jorge Orpinel
ae3455141c
get: language feedback on --show-url PR
...
per https://github.com/iterative/dvc/pull/3156#pullrequestreview-345562608
2020-01-22 19:47:57 -06:00
Jorge Orpinel
6e61236fb7
get/imp: update help output descriptions
...
per https://github.com/iterative/dvc/issues/3196#issuecomment-577306219
2020-01-22 12:00:06 -06:00
Saugat Pachhai
f130e18e2c
get: use new exception from public api
2020-01-16 19:28:14 +05:45
Saugat Pachhai
eb252e055b
get: split command for getting url and getting files from url functions
2020-01-16 19:28:14 +05:45
Saugat Pachhai
4509f82bc3
get: implement --show-url to display only url/path to remote
2020-01-16 19:28:14 +05:45
Fábio Santos
5fb6640867
run black
2020-01-10 22:29:27 +00:00
Fábio Santos
f5e40b2a47
get: leverage external_repo() context manager for DVC repositories
2020-01-10 22:28:24 +00:00
Fábio Santos
c16f8825dc
import: update documentation
...
Fixes #3077
2020-01-10 22:28:24 +00:00
Fábio Santos and Jorge Orpinel
5b36ffd60e
Update dvc/command/get.py
...
Co-Authored-By: Jorge Orpinel <[email protected] >
2020-01-10 22:28:24 +00:00
Fábio Santos and Jorge Orpinel
9a98622020
Update dvc/command/get.py
...
Co-Authored-By: Jorge Orpinel <[email protected] >
2020-01-10 22:28:24 +00:00
Fábio Santos and Jorge Orpinel
04619d559b
Update dvc/command/get.py
...
Co-Authored-By: Jorge Orpinel <[email protected] >
2020-01-10 22:28:24 +00:00
Fábio Santos and Jorge Orpinel
51f2fa184f
Update dvc/command/get.py
...
Co-Authored-By: Jorge Orpinel <[email protected] >
2020-01-10 22:28:24 +00:00
Fábio Santos
6a4f4031b0
change command doc string
2020-01-10 22:28:24 +00:00
Fábio Santos
f126f2483b
doc: change get documentation so that it doesn't imply the target must be DVC enabled
2020-01-10 22:28:24 +00:00
Mr. Outis
94a0914bba
py3: get rid of future imports
2019-12-30 19:35:48 -06:00
Dani Hodovic
1f5da3ffef
fix CLI docs
2019-12-05 21:05:01 +01:00
Dani Hodovic
26b62331c7
CLI --help changes
2019-12-05 21:05:01 +01:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Alexander Schepanovski
0203fd4017
perf: import dvc.repo dynamically
2019-09-27 15:08:42 +07:00
Sritanu Chakraborty
ffa0c1caeb
dvc: Changes url description in get.py and imp.py
...
Fixes #2253
2019-08-04 06:12:47 +05:30
Ruslan Kuprieiev
e890c0558a
dvc: fix help messages for get and import-url
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-22 00:50:22 +03:00
Ruslan Kuprieiev
1ba8e0171d
dvc: replace pkg concept with external repo
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-21 01:16:00 +03:00