MCPcopy
hub / github.com/treeverse/dvc / run

Method run

dvc/commands/data.py:113–132  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 return 0
112
113 def run(self) -> int:
114 with log_durations(logger.trace, "in data_status"):
115 status = self.repo.data_status(
116 targets=self.args.targets,
117 granular=self.args.granular,
118 untracked_files=self.args.untracked_files,
119 remote=self.args.remote,
120 not_in_remote=self.args.not_in_remote,
121 remote_refresh=self.args.remote_refresh,
122 )
123
124 if not self.args.unchanged:
125 status.pop("unchanged") # type: ignore[misc]
126 if self.args.untracked_files == "no":
127 status.pop("untracked")
128 if self.args.json:
129 status.pop("git") # type: ignore[misc]
130 ui.write_json(compact(status))
131 return 0
132 return self._show_status(status)
133
134
135def add_parser(subparsers, parent_parser):

Callers

nothing calls this directly

Calls 2

_show_statusMethod · 0.95
write_jsonMethod · 0.80

Tested by

no test coverage detected