commit bbc3ca0878fb0dd1962d79f699cc69e3c1b17f75
parent 60a6fd36fbc208c4c0d9910cd759c2a8e70e8058
Author: Antoine A <>
Date: Thu, 12 Dec 2024 19:41:05 +0100
libeufin: new manual cmd
Diffstat:
3 files changed, 79 insertions(+), 7 deletions(-)
diff --git a/frags/libeufin-config-cli.rst b/frags/libeufin-config-cli.rst
@@ -9,7 +9,7 @@ This command inspect or change the configuration.
Subcommands: **get**, **dump**, **pathsub**
config get
------------
+^^^^^^^^^^
This command lookup config value.
@@ -25,7 +25,7 @@ It takes two arguments, the section name and the option name
Print short help on options.
config dump
------------
+^^^^^^^^^^^
This command dump the configuration.
@@ -37,7 +37,7 @@ This command dump the configuration.
Print short help on options.
config pathsub
---------------
+^^^^^^^^^^^^^^
This command substitute variables in a path.
diff --git a/libeufin/nexus-manual.rst b/libeufin/nexus-manual.rst
@@ -303,10 +303,22 @@ To obtain PAIN files for pending initiated outgoing transactions in a `payments.
.. code-block:: console
- $ libeufin-nexus testing export -c "$CONFIG_FILE" payments.zip
+ $ libeufin-nexus manual export -c "$CONFIG_FILE" payments.zip
+
+You have to update the batch state status manually after the uplaod, you can run:
+
+.. code-block:: console
+
+ $ libeufin-nexus manual status -c "$CONFIG_FILE" batch $BATCH_ID success
+
+or
+
+.. code-block:: console
+
+ $ libeufin-nexus manual status -c "$CONFIG_FILE" batch $BATCH_ID permanent_failure "Unexpected error"
To import CAMT files, you can run:
.. code-block:: console
- $ libeufin-nexus testing import -c "$CONFIG_FILE" camt53.xml
-\ No newline at end of file
+ $ libeufin-nexus manual import -c "$CONFIG_FILE" camt53.xml
+\ No newline at end of file
diff --git a/manpages/libeufin-bank.1.rst b/manpages/libeufin-bank.1.rst
@@ -17,7 +17,7 @@ Synopsis
[**--version**]
COMMAND [ARGS...]
-Subcommands: **dbinit**, **passwd**, **create-token**, **serve**, **create-account**, **edit-account**, **gc**, **bench-pwh**, **config**
+Subcommands: **dbinit**, **passwd**, **create-token**, **serve**, **create-account**, **edit-account**, **gc**, **bench-pwh**, **manual**, **config**
Description
@@ -202,6 +202,66 @@ Its options are as follows:
**-h** \| **--help**
Print short help on options.
+manual
+------
+
+Manual management commands.
+
+Its options are as follows:
+
+**-h** \| **--help**
+ Print short help on options.
+
+Subcommands: **export**, **import**, **status**
+
+manual export
+^^^^^^^^^^^^^
+
+Export pending batches as pain001 messages.
+
+It takes one argument, the path where to write the zip export.
+
+Its options are as follows:
+
+**-c** \| **--config** *config_file*
+ Specifies the configuration file.
+**-L** \| **--log** *LOGLEVEL*
+ Configure logging to use LOGLEVEL.
+**-h** \| **--help**
+ Print short help on options.
+
+manual import
+^^^^^^^^^^^^^
+
+Import EBICS camt files.
+
+It takes multiple arguments, the paths to XML files to import.
+
+Its options are as follows:
+
+**-c** \| **--config** *config_file*
+ Specifies the configuration file.
+**-L** \| **--log** *LOGLEVEL*
+ Configure logging to use LOGLEVEL.
+**-h** \| **--help**
+ Print short help on options.
+
+manual status
+^^^^^^^^^^^^^
+
+Change batches or transactions status.
+
+It takes four arguments: the element kind, the element id, the new status and an optional status message.
+
+Its options are as follows:
+
+**-c** \| **--config** *config_file*
+ Specifies the configuration file.
+**-L** \| **--log** *LOGLEVEL*
+ Configure logging to use LOGLEVEL.
+**-h** \| **--help**
+ Print short help on options.
+
.. include:: ../frags/libeufin-config-cli.rst