[ref] #409: Improve endpoint determination code layer
Implement determine_endpoint() to replace Endpoint() It handles custom, default g1 and gtest endpoints Read custom endpoints from a regex Handle host/ipv4 mixup fix with ipaddress ipv6 support with brakets Rename peer to endpoint: option --peer/-p −> --endpoint/-ep import sys and silkaj.constants directly write tests Kept the ability of not having click installed - #354 The tests are difficult to write Actually, I am not sure if this feature is easy use. Using Silkaj as lib is kind of difficult since click is imported in almost every modules
Showing
- silkaj/blocks.py 2 additions, 2 deletionssilkaj/blocks.py
- silkaj/cli.py 8 additions, 12 deletionssilkaj/cli.py
- silkaj/commands.py 10 additions, 10 deletionssilkaj/commands.py
- silkaj/constants.py 2 additions, 2 deletionssilkaj/constants.py
- silkaj/network_tools.py 45 additions, 29 deletionssilkaj/network_tools.py
- tests/test_network_tools.py 46 additions, 1 deletiontests/test_network_tools.py
- tests/test_verify_blocks.py 3 additions, 3 deletionstests/test_verify_blocks.py
Loading
Please register or sign in to comment