From f228a3ac5e2099740db2ada53f9023749abab348 Mon Sep 17 00:00:00 2001 From: Harvey Hunt Date: Tue, 7 Nov 2023 06:41:39 -0800 Subject: [PATCH] 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 --- build/fbcode_builder/getdeps.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index 0c18d5c2e..7f824c0eb 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -467,6 +467,13 @@ def run(self, args): 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):