Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
silkaj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
silkaj
Commits
fa03d43e
Commit
fa03d43e
authored
1 year ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
Set general --gtest and --endpoint options as mutually exclusives
parent
8173b68b
No related branches found
No related tags found
1 merge request
!249
Store revocation file with 600 permission (#481). Fix CI. Set endpoint options as mutually exclusives
Pipeline
#33491
failed
1 year ago
Stage: checks
Stage: tests
Stage: package
Stage: coverage
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
silkaj/cli.py
+5
-1
5 additions, 1 deletion
silkaj/cli.py
with
5 additions
and
1 deletion
silkaj/cli.py
+
5
−
1
View file @
fa03d43e
...
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment