Skip to content

Commit 8f0a34d

Browse files
authored
Merge pull request #565 from bitcoin-dev-project/init-bug
Fixes init bug
2 parents 1da2547 + 0c4f76c commit 8f0a34d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
Fork-observer is watching you
1+
To view forkobserver you must forward the port from the cluster to your local machine
2+
3+
kubectl port-forward fork-observer 2323
4+
5+
fork-observer will then be available at web address: http://localhost:2323

src/warnet/project.py

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -298,24 +298,20 @@ def new_internal(directory: Path, from_init=False):
298298
),
299299
]
300300
)
301+
custom_network_path = ""
301302
if proj_answers is None:
302303
click.secho("Setup cancelled by user.", fg="yellow")
303304
return False
304305
if proj_answers["custom_network"]:
305306
click.secho("\nGenerating custom network...", fg="yellow", bold=True)
306307
custom_network_path = inquirer_create_network(directory)
307308

308-
click.echo(
309-
f"\nEdit the network files found in {custom_network_path} before deployment if you want to customise the network."
310-
)
311-
click.echo(
312-
"If you enabled fork-observer you must forward the port from the cluster to your local machine:\n"
313-
"`kubectl port-forward fork-observer 2323`\n"
314-
"fork-observer will then be available at web address: localhost:2323"
315-
)
316-
317-
click.echo("\nWhen you're ready, run the following command to deploy this network:")
318-
click.echo(f" warnet deploy {custom_network_path}")
309+
if custom_network_path:
310+
click.echo(
311+
f"\nEdit the network files found in {custom_network_path} before deployment if you want to customise the network."
312+
)
313+
click.echo("\nWhen you're ready, run the following command to deploy this network:")
314+
click.echo(f" warnet deploy {custom_network_path}")
319315

320316

321317
@click.command()

0 commit comments

Comments
 (0)