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
00723f1a
Commit
00723f1a
authored
2 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
Move about cmd and about module (
#330
)
parent
1df4ba63
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
silkaj/about.py
+46
-0
46 additions, 0 deletions
silkaj/about.py
silkaj/cli.py
+2
-28
2 additions, 28 deletions
silkaj/cli.py
with
48 additions
and
28 deletions
silkaj/about.py
0 → 100644
+
46
−
0
View file @
00723f1a
# Copyright 2016-2022 Maël Azimi <m.a@moul.re>
#
# Silkaj is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Silkaj is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
import
click
from
silkaj.constants
import
SILKAJ_VERSION
@click.command
(
"
about
"
,
help
=
"
Display program information
"
)
def
about
()
->
None
:
print
(
"
\
\n
@@@@@@@@@@@@@
\
\n
@@@ @ @@@
\
\n
@@@ @@ @@@@@@ @@. Silkaj
"
,
SILKAJ_VERSION
,
"
\
\n
@@ @@@ @@@@@@@@@@@ @@,
\
\n
@@ @@@ &@@@@@@@@@@@@@ @@@ Powerfull and lightweight command line client
\
\n
@@ @@@ @@@@@@@@@# @@@@ @@(
\
\n
@@ @@@@ @@@@@@@@@ @@@ @@ Built in Python for Duniter’s currencies:
\
Ğ1 and Ğ1-Test
\
\n
@@ @@@ @@@@@@@@ @ @@@ @@
\
\n
@@ @@@ @@@@@@ @@@@ @@ @@ Authors: see AUTHORS.md file
\
\n
@@ @@@@ @@@ @@@@@@@ @@ @@
\
\n
@@ @@@@* @@@@@@@@@ @# @@ Website: https://silkaj.duniter.org
\
\n
@@ @@@@@ @@@@@@@@@@ @ ,@@
\
\n
@@ @@@@@ @@@@@@@@@@ @ ,@@ Repository:
\
https://git.duniter.org/clients/python/silkaj
\
\n
@@@ @@@@@@@@@@@@ @ @@*
\
\n
@@@ @@@@@@@@ @ @@@ License: GNU AGPLv3
\
\n
@@@@ @@ @@@,
\
\n
@@@@@@@@@@@@@@@
\n
"
,
)
This diff is collapsed.
Click to expand it.
silkaj/cli.py
+
2
−
28
View file @
00723f1a
...
@@ -19,6 +19,7 @@ from click import Context, group, help_option, option, pass_context, version_opt
...
@@ -19,6 +19,7 @@ from click import Context, group, help_option, option, pass_context, version_opt
from
duniterpy.api.endpoint
import
endpoint
as
du_endpoint
from
duniterpy.api.endpoint
import
endpoint
as
du_endpoint
from
silkaj
import
revocation
from
silkaj
import
revocation
from
silkaj.about
import
about
from
silkaj.auth
import
generate_auth_file
from
silkaj.auth
import
generate_auth_file
from
silkaj.blockchain.blocks
import
list_blocks
from
silkaj.blockchain.blocks
import
list_blocks
from
silkaj.blockchain.difficulty
import
difficulties
from
silkaj.blockchain.difficulty
import
difficulties
...
@@ -123,6 +124,7 @@ def cli(
...
@@ -123,6 +124,7 @@ def cli(
ctx
.
obj
[
"
DRY_RUN
"
]
=
dry_run
ctx
.
obj
[
"
DRY_RUN
"
]
=
dry_run
cli
.
add_command
(
about
)
cli
.
add_command
(
argos_info
)
cli
.
add_command
(
argos_info
)
cli
.
add_command
(
generate_auth_file
)
cli
.
add_command
(
generate_auth_file
)
cli
.
add_command
(
cmd_amount
)
cli
.
add_command
(
cmd_amount
)
...
@@ -154,31 +156,3 @@ revocation_group.add_command(revocation.save)
...
@@ -154,31 +156,3 @@ revocation_group.add_command(revocation.save)
revocation_group
.
add_command
(
revocation
.
verify
)
revocation_group
.
add_command
(
revocation
.
verify
)
revocation_group
.
add_command
(
revocation
.
publish
)
revocation_group
.
add_command
(
revocation
.
publish
)
revocation_group
.
add_command
(
revocation
.
revoke_now
)
revocation_group
.
add_command
(
revocation
.
revoke_now
)
@cli.command
(
"
about
"
,
help
=
"
Display program information
"
)
def
about
()
->
None
:
print
(
"
\
\n
@@@@@@@@@@@@@
\
\n
@@@ @ @@@
\
\n
@@@ @@ @@@@@@ @@. Silkaj
"
,
SILKAJ_VERSION
,
"
\
\n
@@ @@@ @@@@@@@@@@@ @@,
\
\n
@@ @@@ &@@@@@@@@@@@@@ @@@ Powerfull and lightweight command line client
\
\n
@@ @@@ @@@@@@@@@# @@@@ @@(
\
\n
@@ @@@@ @@@@@@@@@ @@@ @@ Built in Python for Duniter’s currencies:
\
Ğ1 and Ğ1-Test
\
\n
@@ @@@ @@@@@@@@ @ @@@ @@
\
\n
@@ @@@ @@@@@@ @@@@ @@ @@ Authors: see AUTHORS.md file
\
\n
@@ @@@@ @@@ @@@@@@@ @@ @@
\
\n
@@ @@@@* @@@@@@@@@ @# @@ Website: https://silkaj.duniter.org
\
\n
@@ @@@@@ @@@@@@@@@@ @ ,@@
\
\n
@@ @@@@@ @@@@@@@@@@ @ ,@@ Repository:
\
https://git.duniter.org/clients/python/silkaj
\
\n
@@@ @@@@@@@@@@@@ @ @@*
\
\n
@@@ @@@@@@@@ @ @@@ License: GNU AGPLv3
\
\n
@@@@ @@ @@@,
\
\n
@@@@@@@@@@@@@@@
\n
"
,
)
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