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
a57942a4
Commit
a57942a4
authored
1 year ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
Set rich_click.{SHOW_ARGUMENTS,OPTIONS_GROUPS} (
#466
)
parent
5424b7fe
No related branches found
No related tags found
1 merge request
!241
Use rich_click (#466)
Pipeline
#32523
passed
1 year ago
Stage: checks
Stage: tests
Stage: package
Stage: coverage
Stage: deploy
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
silkaj/cli.py
+24
-0
24 additions, 0 deletions
silkaj/cli.py
with
24 additions
and
0 deletions
silkaj/cli.py
+
24
−
0
View file @
a57942a4
...
...
@@ -40,6 +40,30 @@ from silkaj.wot.lookup import lookup_cmd
from
silkaj.wot.membership
import
send_membership
from
silkaj.wot.status
import
status
click
.
rich_click
.
SHOW_ARGUMENTS
=
True
click
.
rich_click
.
OPTION_GROUPS
=
{
"
silkaj
"
:
[
{
"
name
"
:
"
Basic options
"
,
"
options
"
:
[
"
--help
"
,
"
--version
"
],
},
{
"
name
"
:
"
Endpoint and currency specification
"
,
"
options
"
:
[
"
--endpoint
"
,
"
--gtest
"
],
},
{
"
name
"
:
"
Authentication
"
,
"
options
"
:
[
"
--auth-scrypt
"
,
"
--nrp
"
,
"
--auth-file
"
,
"
--auth-seed
"
,
"
--auth-wif
"
,
],
},
],
}
@click.group
()
@click.help_option
(
"
-h
"
,
"
--help
"
)
...
...
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