xref: /aosp_15_r20/external/pigweed/pw_module/docs.rst (revision 61c4878ac05f98d0ceed94b57d316916de578985)
1*61c4878aSAndroid Build Coastguard Worker.. _module-pw_module:
2*61c4878aSAndroid Build Coastguard Worker
3*61c4878aSAndroid Build Coastguard Worker---------
4*61c4878aSAndroid Build Coastguard Workerpw_module
5*61c4878aSAndroid Build Coastguard Worker---------
6*61c4878aSAndroid Build Coastguard WorkerThe ``pw_module`` module contains tools for managing Pigweed modules.
7*61c4878aSAndroid Build Coastguard WorkerFor information on the structure of a Pigweed module, refer to
8*61c4878aSAndroid Build Coastguard Worker:ref:`docs-module-guides`.
9*61c4878aSAndroid Build Coastguard Worker
10*61c4878aSAndroid Build Coastguard WorkerCommands
11*61c4878aSAndroid Build Coastguard Worker--------
12*61c4878aSAndroid Build Coastguard Worker
13*61c4878aSAndroid Build Coastguard Worker.. _module-pw_module-module-check:
14*61c4878aSAndroid Build Coastguard Worker
15*61c4878aSAndroid Build Coastguard Worker``pw module check``
16*61c4878aSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^
17*61c4878aSAndroid Build Coastguard WorkerThe ``pw module check`` command exists to ensure that your module conforms to
18*61c4878aSAndroid Build Coastguard Workerthe Pigweed module norms.
19*61c4878aSAndroid Build Coastguard Worker
20*61c4878aSAndroid Build Coastguard WorkerFor example, at time of writing ``pw module check pw_module`` is not passing
21*61c4878aSAndroid Build Coastguard Workerits own lint:
22*61c4878aSAndroid Build Coastguard Worker
23*61c4878aSAndroid Build Coastguard Worker.. code-block:: none
24*61c4878aSAndroid Build Coastguard Worker
25*61c4878aSAndroid Build Coastguard Worker   $ pw module check pw_module
26*61c4878aSAndroid Build Coastguard Worker
27*61c4878aSAndroid Build Coastguard Worker    ▒█████▄   █▓  ▄███▒  ▒█    ▒█ ░▓████▒ ░▓████▒ ▒▓████▄
28*61c4878aSAndroid Build Coastguard Worker     ▒█░  █░ ░█▒ ██▒ ▀█▒ ▒█░ █ ▒█  ▒█   ▀  ▒█   ▀  ▒█  ▀█▌
29*61c4878aSAndroid Build Coastguard Worker     ▒█▄▄▄█░ ░█▒ █▓░ ▄▄░ ▒█░ █ ▒█  ▒███    ▒███    ░█   █▌
30*61c4878aSAndroid Build Coastguard Worker     ▒█▀     ░█░ ▓█   █▓ ░█░ █ ▒█  ▒█   ▄  ▒█   ▄  ░█  ▄█▌
31*61c4878aSAndroid Build Coastguard Worker     ▒█      ░█░ ░▓███▀   ▒█▓▀▓█░ ░▓████▒ ░▓████▒ ▒▓████▀
32*61c4878aSAndroid Build Coastguard Worker
33*61c4878aSAndroid Build Coastguard Worker   20191205 17:05:19 INF Checking module: pw_module
34*61c4878aSAndroid Build Coastguard Worker   20191205 17:05:19 ERR PWCK004: Missing ReST documentation; need at least e.g. "docs.rst"
35*61c4878aSAndroid Build Coastguard Worker   20191205 17:05:19 ERR FAIL: Found errors when checking module pw_module
36*61c4878aSAndroid Build Coastguard Worker
37*61c4878aSAndroid Build Coastguard Worker
38*61c4878aSAndroid Build Coastguard Worker.. _module-pw_module-module-create:
39*61c4878aSAndroid Build Coastguard Worker
40*61c4878aSAndroid Build Coastguard Worker``pw module create``
41*61c4878aSAndroid Build Coastguard Worker^^^^^^^^^^^^^^^^^^^^
42*61c4878aSAndroid Build Coastguard WorkerThe ``pw module create`` command is used to generate all of the required
43*61c4878aSAndroid Build Coastguard Workerboilerplate for a new Pigweed module.
44*61c4878aSAndroid Build Coastguard Worker
45*61c4878aSAndroid Build Coastguard Worker.. note::
46*61c4878aSAndroid Build Coastguard Worker
47*61c4878aSAndroid Build Coastguard Worker   ``pw module create`` is still under construction and mostly experimental.
48*61c4878aSAndroid Build Coastguard Worker   It is only usable in upstream Pigweed, and has limited feature support, with
49*61c4878aSAndroid Build Coastguard Worker   a command-line API subject to change.
50*61c4878aSAndroid Build Coastguard Worker
51*61c4878aSAndroid Build Coastguard Worker   Once the command is more stable, it will be properly documented. For now,
52*61c4878aSAndroid Build Coastguard Worker   running ``pw module create --help`` will display the current set of options.
53