Skip to content
Snippets Groups Projects

Store revocation file with 600 permission (#481). Fix CI. Set endpoint options as mutually exclusives

Merged Moul requested to merge 481_revocation_600 into main
1 file
+ 5
1
Compare changes
  • Side-by-side
  • Inline
+ 5
1
@@ -19,7 +19,7 @@ from pathlib import Path
import rich_click as click
from duniterpy.api.endpoint import endpoint as du_endpoint
from silkaj import tui
from silkaj import tools, tui
from silkaj.about import about
from silkaj.auth import generate_auth_file
from silkaj.blockchain.blocks import list_blocks
@@ -77,6 +77,8 @@ click.rich_click.OPTION_GROUPS = {
{tui.endpoint_link(du_endpoint(G1_DEFAULT_ENDPOINT).host)}. \
--endpoint allows to specify a custom endpoint following the format: <host>:<port>/<path>. \
<port> and <path> are optional. In case no port is specified, it defaults to 443.",
cls=tools.MutuallyExclusiveOption,
mutually_exclusive=["gtest"],
)
@click.option(
"--gtest",
@@ -85,6 +87,8 @@ click.rich_click.OPTION_GROUPS = {
help=f"Uses official ĞTest currency endpoint: \
{tui.endpoint_link(du_endpoint(G1_TEST_DEFAULT_ENDPOINT).host)}. \
Note that --endpoint has precedence over --gtest.",
cls=tools.MutuallyExclusiveOption,
mutually_exclusive=["endpoint"],
)
@click.option(
"--auth-scrypt",
Loading