File tree Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Expand file tree Collapse file tree 3 files changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ include src/warnet/templates/fork_observer_config.toml
44include src/warnet/templates/addrman_observer_config.toml
55include src/warnet/templates/addrman.patch
66include src/warnet/templates/isroutable.patch
7- include src/warnet/scripts/quick_start.sh
87graft src/warnet/templates/k8s
98graft src/warnet/templates/rpc
109graft src/warnet/templates/grafana-provisioning
File renamed without changes.
Original file line number Diff line number Diff line change 1- import os
2- import subprocess
3- from importlib import resources
4-
51import click
62from rich import print as richprint
73
@@ -64,35 +60,5 @@ def help_command(ctx, commands):
6460cli .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-
9763if __name__ == "__main__" :
9864 cli ()
You can’t perform that action at this time.
0 commit comments