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
96d75612
Commit
96d75612
authored
4 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[mod]
#264
: Disable 'net' command
parent
3dccbbfd
No related branches found
No related tags found
2 merge requests
!146
Merge dev into master branch to complete v0.8.0 development cycle
,
!133
Disable 'net' command | Move convert_time() to tui.py
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
silkaj/cli.py
+3
-2
3 additions, 2 deletions
silkaj/cli.py
silkaj/net.py
+3
-0
3 additions, 0 deletions
silkaj/net.py
with
6 additions
and
2 deletions
silkaj/cli.py
+
3
−
2
View file @
96d75612
...
...
@@ -29,7 +29,8 @@ from silkaj.commands import (
argos_info
,
list_blocks
,
)
from
silkaj.net
import
network_info
# from silkaj.net import network_info
from
silkaj.wot
import
received_sent_certifications
,
id_pubkey_correspondence
from
silkaj.auth
import
generate_auth_file
from
silkaj.license
import
license_command
...
...
@@ -107,7 +108,7 @@ cli.add_command(transaction_history)
cli
.
add_command
(
id_pubkey_correspondence
)
cli
.
add_command
(
currency_info
)
cli
.
add_command
(
license_command
)
cli
.
add_command
(
network_info
)
#
cli.add_command(network_info)
cli
.
add_command
(
send_transaction
)
cli
.
add_command
(
verify_blocks_signatures
)
cli
.
add_command
(
received_sent_certifications
)
...
...
This diff is collapsed.
Click to expand it.
silkaj/net.py
+
3
−
0
View file @
96d75612
...
...
@@ -15,6 +15,7 @@ You should have received a copy of the GNU Affero General Public License
along with Silkaj. If not, see <https://www.gnu.org/licenses/>.
"""
"""
from click import command, option, get_terminal_size
from datetime import datetime
from os import system
...
...
@@ -139,3 +140,5 @@ async def network_info(discover, sort):
)
infos = sorted(infos, key=get_network_sort_key)
print(tabulate(infos, headers=
"
keys
"
, tablefmt=
"
orgtbl
"
, stralign=
"
center
"
))
"""
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