Skip to content

Commit e3e636f

Browse files
committed
project: suggest setting an env var
1 parent 63f6904 commit e3e636f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/warnet/project.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
KUBECTL_BLESSED_NAME_AND_CHECKSUMS,
2525
KUBECTL_BLESSED_VERSION,
2626
KUBECTL_DOWNLOAD_URL_STUB,
27+
WARNET_USER_DIR_ENV_VAR,
2728
)
2829
from .graph import inquirer_create_network
2930
from .network import copy_network_defaults, copy_plugins_defaults, copy_scenario_defaults
@@ -439,6 +440,11 @@ def new_internal(directory: Path, from_init=False):
439440
click.echo("\nWhen you're ready, run the following command to deploy this network:")
440441
click.echo(f" warnet deploy {custom_network_path}")
441442

443+
click.secho(
444+
"Consider setting an environment variable to make it easier to access your user directory:"
445+
)
446+
click.secho(f"export {WARNET_USER_DIR_ENV_VAR}={directory}", fg="yellow")
447+
442448

443449
@click.command()
444450
def init():

0 commit comments

Comments
 (0)