From f33c2b59f911db2dabec0d810cd065ae0d33ad33 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Fri, 28 Oct 2022 18:44:56 +0200
Subject: [PATCH] Delete argos command (#449)
Delete documentation
---
README.md | 1 -
doc/argos.md | 19 ----------------
silkaj/blockchain/information.py | 38 --------------------------------
silkaj/cli.py | 3 +--
4 files changed, 1 insertion(+), 60 deletions(-)
delete mode 100644 doc/argos.md
diff --git a/README.md b/README.md
index 7715a8c2..33db7152 100644
--- a/README.md
+++ b/README.md
@@ -93,7 +93,6 @@ silkaj -ep <hostname>:<port> <sub-command>
## Wrappers
-- [Install as a drop-down for GNOME Shell with Argos](doc/argos.md)
- [How-to: automate transactions and multi-output](doc/how-to_automate_transactions_and_multi-output.md)
- [Transaction generator written in Shell](https://gitlab.com/jytou/tgen)
- [Ğ1Cotis](https://git.duniter.org/matograine/g1-cotis)
diff --git a/doc/argos.md b/doc/argos.md
deleted file mode 100644
index 5be04753..00000000
--- a/doc/argos.md
+++ /dev/null
@@ -1,19 +0,0 @@
-## Install as a drop-down for GNOME Shell with Argos
-
-Under GNOME Shell, with [Argos](https://github.com/p-e-w/argos) extension:
-
-- [Install Argos](https://github.com/p-e-w/argos#installation)
-- Inside `~/.config/argos/silkaj.30s.sh` put:
-
-```bash
-#!/usr/bin/env bash
-/path/to/silkaj/silkaj argos
-```
-
-Add execution permission:
-
-```bash
-chmod u+x ~/.config/argos/silkaj.30s.sh
-```
-
-Argos will run the script every 30 seconds.
diff --git a/silkaj/blockchain/information.py b/silkaj/blockchain/information.py
index 6a775cd6..18609dc0 100644
--- a/silkaj/blockchain/information.py
+++ b/silkaj/blockchain/information.py
@@ -47,41 +47,3 @@ def currency_info() -> None:
"\nDifference time:",
current_time.diff_for_humans(mediantime, True),
)
-
-
-@click.command(
- "argos", help="Display currency information formatted for Argos or BitBar"
-)
-def argos_info() -> None:
- head_block = get_head_block()
- currency_symbol = get_currency_symbol()
- print(currency_symbol, "|")
- print("---")
- ep = determine_endpoint()
- if ep.port == 443:
- href = f"href=https://{ep.host}/"
- else:
- href = f"href=http://{ep.host}:{ep.port}/"
- current_time = from_timestamp(head_block["time"], tz="local")
- mediantime = from_timestamp(head_block["medianTime"], tz="local")
- print(
- "Connected to node:",
- ep.host,
- ep.port,
- "|",
- href,
- "\nCurrent block number:",
- head_block["number"],
- "\nCurrency name:",
- currency_symbol,
- "\nNumber of members:",
- head_block["membersCount"],
- "\nMinimal Proof-of-Work:",
- head_block["powMin"],
- "\nCurrent time:",
- current_time.format(ALL),
- "\nMedian time:",
- mediantime.format(ALL),
- "\nDifference time:",
- current_time.diff_for_humans(mediantime, True),
- )
diff --git a/silkaj/cli.py b/silkaj/cli.py
index 0eefc99c..742f3a10 100644
--- a/silkaj/cli.py
+++ b/silkaj/cli.py
@@ -22,7 +22,7 @@ from silkaj.about import about
from silkaj.auth import generate_auth_file
from silkaj.blockchain.blocks import list_blocks
from silkaj.blockchain.difficulty import difficulties
-from silkaj.blockchain.information import argos_info, currency_info
+from silkaj.blockchain.information import currency_info
from silkaj.blockchain.verify import verify_blocks_signatures
from silkaj.checksum import checksum_command
from silkaj.constants import (
@@ -136,7 +136,6 @@ def blockchain_group() -> None:
pass
-blockchain_group.add_command(argos_info)
blockchain_group.add_command(list_blocks)
blockchain_group.add_command(difficulties)
blockchain_group.add_command(currency_info)
--
GitLab