Skip to content

Commit

Permalink
Remove unnecessary logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed May 3, 2023
1 parent 475c5d2 commit f840577
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions platformio/project/commands/init.py
Expand Up @@ -127,15 +127,6 @@ def project_init_cmd(


def print_header(project_dir):
if project_dir == os.getcwd():
click.secho("\nThe current working directory ", fg="yellow", nl=False)
try:
click.secho(project_dir, fg="cyan", nl=False)
except UnicodeEncodeError:
click.secho(json.dumps(project_dir), fg="cyan", nl=False)
click.secho(" will be used for the project.", fg="yellow")
click.echo("")

click.echo("The next files/directories have been created in ", nl=False)
try:
click.secho(project_dir, fg="cyan")
Expand All @@ -153,18 +144,9 @@ def print_header(project_dir):


def print_footer(is_new_project):
if is_new_project:
return click.secho(
"\nProject has been successfully initialized! Useful commands:\n"
"`pio run` - process/build project from the current directory\n"
"`pio run --target upload` or `pio run -t upload` "
"- upload firmware to a target\n"
"`pio run --target clean` - clean project (remove compiled files)"
"\n`pio run --help` - additional information",
fg="green",
)
action = "initialized" if is_new_project else "updated"
return click.secho(
"Project has been successfully updated!",
f"Project has been successfully {action}!",
fg="green",
)

Expand Down

0 comments on commit f840577

Please sign in to comment.