mirror of
https://github.com/facebook/sapling.git
synced 2024-10-04 22:07:44 +03:00
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:
parent
bd4d633a02
commit
3d54cfb2b7
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user