Skip to content

Commit 6690dcf

Browse files
authored
Merge pull request #6755 from DIRACGridBot/cherry-pick-2-03ae65b4e-integration
[sweep:integration] COMDIRAC merge
2 parents d4a625f + 1b83ce1 commit 6690dcf

31 files changed

+3831
-1
lines changed

docs/docs.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,10 @@ sectionPath = source/UserGuide/CommandReference/%(title)s
164164
pattern = dirac-proxy, dirac-info, -resource-
165165
title = Others
166166
sectionPath = source/UserGuide/CommandReference/%(title)s
167+
168+
[commands.comdirac]
169+
prefix = shorthand
170+
pattern = d
171+
exclude = dirac
172+
title = Shorthand
173+
sectionPath = source/UserGuide/CommandReference/%(title)s
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
==================
2+
Shorthand Commands
3+
==================
4+
5+
These commands are aimed at frequest users of a DIRAC UI, especially if you experience latency issues, as this setup offers a caching mechanism.
6+
They do require some initial setup.
7+
8+
#. Setting up your default
9+
10+
You only need to do this once.
11+
12+
$ source diracos/diracosrc
13+
$ dirac-proxy-init -g [your DIRAC group]
14+
$ dconfig --minimal
15+
16+
This will create a skeleton config file in ``~/.dirac/dcommands.conf``
17+
Now edit the configuration file using your details. If you are a member of more than one VO, you might want to setup different profiles for each.
18+
19+
[global]
20+
default_profile = my_dirac_group
21+
22+
[my_dirac_group]
23+
group_name = my_dirac_group
24+
home_dir = /my_dirac_group/user/m/mydir
25+
default_se = MYHOME-SE-disk
26+
27+
28+
#. Session Initialization
29+
30+
You need to do this for every session.
31+
32+
$ source diracos/diracosrc
33+
$ dinit
34+
35+
Now you are set up to use the DIRAC short commands. For a full list of what is available,
36+
please see the :ref:`commands_reference` section.

docs/source/UserGuide/Tutorials/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ Tutorials
1212
FileCatalogBasic/index
1313
JobManagementAdvanced/index
1414
UsingDIRACFromPython/index
15+
ShorthandCommands/index

docs/source/UserGuide/commands.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
.. _commands_reference:
2+
13
==================
24
Commands Reference
35
==================
46

5-
This page is the work in progress. See more material here soon !
7+
This page is the work in progress.
8+
9+
The shorthand section contains short commands specifically developed for the interactive use of a DIRAC UI.
10+
To be able to use these commands, please check the :ref:`shorthand_cmd` section for an
11+
introduction and initial setup.
612

713
.. toctree::
814
:maxdepth: 1
915

1016
CommandReference/DataManagement/index
1117
CommandReference/WorkloadManagement/index
1218
CommandReference/Others/index
19+
CommandReference/Shorthand/index

setup.cfg

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,31 @@ console_scripts =
234234
dirac-wms-job-submit = DIRAC.Interfaces.scripts.dirac_wms_job_submit:main
235235
dirac-wms-jobs-select-output-search = DIRAC.Interfaces.scripts.dirac_wms_jobs_select_output_search:main
236236
dirac-wms-select-jobs = DIRAC.Interfaces.scripts.dirac_wms_select_jobs:main
237+
dcd = DIRAC.Interfaces.scripts.dcd:main
238+
dchgrp = DIRAC.Interfaces.scripts.dchgrp:main
239+
dchmod = DIRAC.Interfaces.scripts.dchmod:main
240+
dchown = DIRAC.Interfaces.scripts.dchown:main
241+
dconfig = DIRAC.Interfaces.scripts.dconfig:main
242+
dfind = DIRAC.Interfaces.scripts.dfind:main
243+
dget = DIRAC.Interfaces.scripts.dget:main
244+
dgetenv = DIRAC.Interfaces.scripts.dgetenv:main
245+
dinit = DIRAC.Interfaces.scripts.dinit:main
246+
dinput = DIRAC.Interfaces.scripts.dinput:main
247+
dkill = DIRAC.Interfaces.scripts.dkill:main
248+
dlogging = DIRAC.Interfaces.scripts.dlogging:main
249+
dls = DIRAC.Interfaces.scripts.dls:main
250+
dmeta = DIRAC.Interfaces.scripts.dmeta:main
251+
dmkdir = DIRAC.Interfaces.scripts.dmkdir:main
252+
doutput = DIRAC.Interfaces.scripts.doutput:main
253+
dput = DIRAC.Interfaces.scripts.dput:main
254+
dpwd = DIRAC.Interfaces.scripts.dpwd:main
255+
drepl = DIRAC.Interfaces.scripts.drepl:main
256+
dreplicas = DIRAC.Interfaces.scripts.dreplicas:main
257+
drm = DIRAC.Interfaces.scripts.drm:main
258+
drmdir = DIRAC.Interfaces.scripts.drmdir:main
259+
dsize = DIRAC.Interfaces.scripts.dsize:main
260+
dstat = DIRAC.Interfaces.scripts.dstat:main
261+
dsub = DIRAC.Interfaces.scripts.dsub:main
237262
# ProductionSystem
238263
dirac-prod-add-trans = DIRAC.ProductionSystem.scripts.dirac_prod_add_trans:main [admin]
239264
dirac-prod-complete = DIRAC.ProductionSystem.scripts.dirac_prod_complete:main [admin]

0 commit comments

Comments
 (0)