Skip to content

Commit

Permalink
Adding include_dir dlg command
Browse files Browse the repository at this point in the history
This is meant to make it easier for users to find out the include
directory they need to add to their path when compiling shared libraries
against daliuge.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Mar 16, 2020
1 parent a429b3b commit ac50189
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion daliuge-runtime/dlg/runtime/tool_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@

from ..common import tool

def include_dir(_parser, _args):
from . import get_include_dir
print(get_include_dir())

def register_commands():
tool.cmdwrap('nm', 'Starts a Node Manager', 'dlg.manager.cmdline:dlgNM')
tool.cmdwrap('dim', 'Starts a Drop Island Manager', 'dlg.manager.cmdline:dlgDIM')
tool.cmdwrap('mm', 'Starts a Master Manager', 'dlg.manager.cmdline:dlgMM')
tool.cmdwrap('replay', 'Starts a Replay Manager', 'dlg.manager.cmdline:dlgReplay')
tool.cmdwrap('daemon', 'Starts a DALiuGE Daemon process', 'dlg.manager.proc_daemon:run_with_cmdline')
tool.cmdwrap('proxy', 'A reverse proxy to be used in restricted environments to contact the Drop Managers', 'dlg.deploy.pawsey.dfms_proxy:run')
tool.cmdwrap('monitor', 'A proxy to be used in conjunction with the dlg proxy in restricted environments', 'dlg.deploy.pawsey.dfms_monitor:run')
tool.cmdwrap('monitor', 'A proxy to be used in conjunction with the dlg proxy in restricted environments', 'dlg.deploy.pawsey.dfms_monitor:run')
tool.cmdwrap('include_dir', 'Print the directory where C header files can be found', include_dir)

0 comments on commit ac50189

Please sign in to comment.