Skip to content

Commit

Permalink
Merge pull request #565 from bitcoin-dev-project/init-bug
Browse files Browse the repository at this point in the history
Fixes init bug
  • Loading branch information
m3dwards authored Sep 10, 2024
2 parents 1da2547 + 0c4f76c commit 8f0a34d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 5 additions & 1 deletion resources/charts/fork-observer/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
Fork-observer is watching you
To view forkobserver you must forward the port from the cluster to your local machine

kubectl port-forward fork-observer 2323

fork-observer will then be available at web address: http://localhost:2323
18 changes: 7 additions & 11 deletions src/warnet/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,24 +298,20 @@ def new_internal(directory: Path, from_init=False):
),
]
)
custom_network_path = ""
if proj_answers is None:
click.secho("Setup cancelled by user.", fg="yellow")
return False
if proj_answers["custom_network"]:
click.secho("\nGenerating custom network...", fg="yellow", bold=True)
custom_network_path = inquirer_create_network(directory)

click.echo(
f"\nEdit the network files found in {custom_network_path} before deployment if you want to customise the network."
)
click.echo(
"If you enabled fork-observer you must forward the port from the cluster to your local machine:\n"
"`kubectl port-forward fork-observer 2323`\n"
"fork-observer will then be available at web address: localhost:2323"
)

click.echo("\nWhen you're ready, run the following command to deploy this network:")
click.echo(f" warnet deploy {custom_network_path}")
if custom_network_path:
click.echo(
f"\nEdit the network files found in {custom_network_path} before deployment if you want to customise the network."
)
click.echo("\nWhen you're ready, run the following command to deploy this network:")
click.echo(f" warnet deploy {custom_network_path}")


@click.command()
Expand Down

0 comments on commit 8f0a34d

Please sign in to comment.