opensource: getdeps: Add show-scratch-dir command

Summary:
X-link: https://github.com/facebookincubator/velox/pull/7446

Add a new command to show the location of the scratch dir that getdeps
will use.

Reviewed By: xavierd

Differential Revision: D51027807

fbshipit-source-id: 80a7cfc04320002588d5ec8964fc88914771c6c7
This commit is contained in:
Harvey Hunt 2023-11-07 06:41:39 -08:00 committed by Facebook GitHub Bot
parent bd4d633a02
commit 3d54cfb2b7

View File

@ -467,6 +467,13 @@ class CleanCmd(SubCmd):
clean_dirs(opts)
@cmd("show-scratch-dir", "show the scratch dir")
class ShowScratchDirCmd(SubCmd):
def run(self, args):
opts = setup_build_options(args)
print(opts.scratch_dir)
@cmd("show-build-dir", "print the build dir for a given project")
class ShowBuildDirCmd(ProjectCmdBase):
def run_project_cmd(self, args, loader, manifest):