Skip to content

Commit ab45222

Browse files
authored
Add --schema-file option to internal drivers (#592)
1 parent 33b109d commit ab45222

File tree

125 files changed

+561
-706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+561
-706
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
autodoc_mock_imports = ["f90nml", "iotaa", "jsonschema", "lxml", "referencing"]
1515
autodoc_typehints = "description"
1616
copyright = str(dt.datetime.now().year)
17+
exclude_patterns = ["**/shared/*.rst"]
1718
extensions = ["sphinx.ext.autodoc", "sphinx.ext.extlinks", "sphinx.ext.intersphinx"]
1819
extlinks_detect_hardcoded_links = True
1920
html_logo = os.path.join("static", "ufs.png")

docs/sections/user_guide/cli/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SUBDIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d)
1+
SUBDIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d | sort)
22

33
.PHONY: all $(SUBDIRS)
44

docs/sections/user_guide/cli/drivers/Makefile

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SUBDIRS = $(filter-out ./shared,$(shell find . -maxdepth 1 -mindepth 1 -type d | sort))
2+
3+
.PHONY: all $(SUBDIRS)
4+
5+
all: $(SUBDIRS)
6+
7+
$(SUBDIRS):
8+
$(MAKE) -C $@ -j
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../shared/help.rst
Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
``cdeps``
22
=========
33

4-
.. include:: /shared/idempotent.rst
4+
.. include:: ../shared/idempotent.rst
55

66
The ``uw`` mode for configuring and running the :CDEPS:`cdeps<>` component.
77

8-
.. literalinclude:: cdeps/help.cmd
9-
:language: text
10-
:emphasize-lines: 1
11-
.. literalinclude:: cdeps/help.out
12-
:language: text
13-
14-
All tasks take the same arguments. For example:
15-
16-
.. literalinclude:: cdeps/run-help.cmd
17-
:language: text
18-
:emphasize-lines: 1
19-
.. literalinclude:: cdeps/run-help.out
20-
:language: text
8+
.. include:: help.rst
219

2210
Examples
2311
^^^^^^^^
@@ -45,10 +33,4 @@ Its contents are described in depth in section :ref:`cdeps_yaml`. Each of the va
4533
4634
.. include:: /shared/key_path.rst
4735

48-
* Specifying the ``--show-schema`` flag, with no other options, prints the driver's schema:
49-
50-
.. literalinclude:: cdeps/show-schema.cmd
51-
:language: text
52-
:emphasize-lines: 1
53-
.. literalinclude:: cdeps/show-schema.out
54-
:language: text
36+
.. include:: schema-options.rst

docs/sections/user_guide/cli/drivers/cdeps/run-help.out

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
usage: uw cdeps atm --cycle CYCLE [-h] [--version] [--config-file PATH]
22
[--dry-run] [--graph-file PATH] [--key-path KEY[.KEY...]]
3-
[--quiet] [--verbose]
3+
[--schema-file PATH] [--quiet] [--verbose]
44

55
The data atmosphere configuration with all required content
66

@@ -22,6 +22,8 @@ Optional arguments:
2222
--key-path KEY[.KEY...]
2323
Dot-separated path of keys leading through the config to the driver's
2424
configuration block
25+
--schema-file PATH
26+
Path to schema file to use for validation
2527
--quiet, -q
2628
Print no logging messages
2729
--verbose, -v
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../shared/schema-options.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../shared/help.rst

docs/sections/user_guide/cli/drivers/chgres_cube.rst renamed to docs/sections/user_guide/cli/drivers/chgres_cube/index.rst

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,11 @@
11
``chgres_cube``
22
===============
33

4-
.. include:: /shared/idempotent.rst
4+
.. include:: ../shared/idempotent.rst
55

66
The ``uw`` mode for configuring and running the :ufs-utils:`chgres_cube<chgres-cube>` component.
77

8-
.. literalinclude:: chgres_cube/help.cmd
9-
:language: text
10-
:emphasize-lines: 1
11-
.. literalinclude:: chgres_cube/help.out
12-
:language: text
13-
14-
All tasks take the same arguments. For example:
15-
16-
.. literalinclude:: chgres_cube/run-help.cmd
17-
:language: text
18-
:emphasize-lines: 1
19-
.. literalinclude:: chgres_cube/run-help.out
20-
:language: text
8+
.. include:: help.rst
219

2210
Examples
2311
^^^^^^^^
@@ -59,10 +47,4 @@ Its contents are described in depth in section :ref:`chgres_cube_yaml`. Each of
5947
6048
$ uw chgres_cube provisioned_rundir --config-file config.yaml --cycle 2023-12-15T18 --batch
6149
62-
* Specifying the ``--show-schema`` flag, with no other options, prints the driver's schema:
63-
64-
.. literalinclude:: chgres_cube/show-schema.cmd
65-
:language: text
66-
:emphasize-lines: 1
67-
.. literalinclude:: chgres_cube/show-schema.out
68-
:language: text
50+
.. include:: schema-options.rst

0 commit comments

Comments
 (0)