Skip to content

Commit

Permalink
opensource: getdeps: Add show-scratch-dir command
Browse files Browse the repository at this point in the history
Summary:
X-link: facebookincubator/velox#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
  • Loading branch information
Harvey Hunt authored and facebook-github-bot committed Nov 7, 2023
1 parent edde9af commit 044fe10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/fbcode_builder/getdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 044fe10

Please sign in to comment.