iskendria-pub / iskendria

Blockchain-based system for scientific publishing
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Make command line tools scriptable #32

Open mhdirkse opened 5 years ago

mhdirkse commented 5 years ago

[AX-32] created by mdi

mhdirkse commented 5 years ago

At the moment, the client tool and the major tool cannot be called from other programs. These tools now require that the user presses enter after a command. Furthermore, there is no way to capture generated person ids, journal ids, etc to include them in further commands.

The user experience would improve when scripting is made possible. This requires an update of the cli package to include variable references and assigning variables from return values. Furthermore, the cli should be extended to run commands from scripts. Then, the handlers of the cli commands within the other packages should be extended to provide return values.

mhdirkse commented 5 years ago

Please note: It is not enough to make the command line interfaces scriptable and to extend the command line interface to work with variables. There should also be an update to ensure that processing and issuing transactions are coordinated. Scripts should either await successful processing of each transaction, or they should assemble all scripted blockchain manipulation in one Hyperledger Sawtooth batch.