completion: decouple completion related stuff from command

It also now uses the main parser itself that invokes the command rather than
creating a new parser object.
This commit is contained in:
Saugat Pachhai (सौगात)
2022-04-20 13:29:33 +05:45
committed by Saugat Pachhai
parent 5c1e7be909
commit cc8a0ce134
31 changed files with 105 additions and 103 deletions
+1 -1
View File
@@ -1,9 +1,9 @@
import argparse
import logging
from dvc.cli import completion
from dvc.cli.command import CmdBase
from dvc.cli.utils import append_doc_link
from dvc.commands import completion
logger = logging.getLogger(__name__)