massalabs / DeWeb

On-chain Decentralized Web Gateway
MIT License
2 stars 1 forks source link

Create config file for CLI #101

Closed SlnPons closed 1 month ago

SlnPons commented 2 months ago

Context Create a config file to store needed info to be able to choose the parameters that can changed (node, chunk size, ...)

How to

Tech info

# The URL to the node to connect to
node_url: "https://buildnet.massa.net/api/v2"
# The max number of slots to wait for an operations to be included into a block
expiry: 9
pivilartisant commented 1 month ago

1) there seems to be a couple of issue on the subject of natively using config files https://github.com/tj/commander.js/issues/1584 (2021) & https://github.com/tj/commander.js/issues/1843 (2023) although there is no super clear api like other cli frameworks.

Dans un premier temps, I'll make a straight forward implementation to identify the correct flow, logic and make sure we have all must have's. I will then procede to improve the code and prettify the cli output.