Skip to content

Commit bd86de0

Browse files
committed
scripts: move quick_start to /scripts and remove cli command
1 parent a137111 commit bd86de0

File tree

3 files changed

+0
-35
lines changed

3 files changed

+0
-35
lines changed

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ include src/warnet/templates/fork_observer_config.toml
44
include src/warnet/templates/addrman_observer_config.toml
55
include src/warnet/templates/addrman.patch
66
include src/warnet/templates/isroutable.patch
7-
include src/warnet/scripts/quick_start.sh
87
graft src/warnet/templates/k8s
98
graft src/warnet/templates/rpc
109
graft src/warnet/templates/grafana-provisioning
File renamed without changes.

src/warnet/cli/main.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
import os
2-
import subprocess
3-
from importlib import resources
4-
51
import click
62
from rich import print as richprint
73

@@ -64,35 +60,5 @@ def help_command(ctx, commands):
6460
cli.add_command(help_command)
6561

6662

67-
@cli.command()
68-
def setup():
69-
"""Run the Warnet quick start setup script"""
70-
try:
71-
with resources.path("warnet.scripts", "quick_start.sh") as script_path:
72-
process = subprocess.Popen(
73-
["/bin/bash", str(script_path)],
74-
stdout=subprocess.PIPE,
75-
stderr=subprocess.STDOUT,
76-
universal_newlines=True,
77-
# This preserves colours from grant's lovely script!
78-
env=dict(os.environ, TERM="xterm-256color"),
79-
)
80-
81-
for line in iter(process.stdout.readline, ""):
82-
print(line, end="", flush=True)
83-
84-
process.stdout.close()
85-
return_code = process.wait()
86-
87-
if return_code != 0:
88-
print(f"Quick start script failed with return code {return_code}")
89-
return False
90-
return True
91-
92-
except Exception as e:
93-
print(f"An error occurred while running the quick start script: {e}")
94-
return False
95-
96-
9763
if __name__ == "__main__":
9864
cli()

0 commit comments

Comments
 (0)