Skip to content

Commit

Permalink
✨ Run make clean after uninstall template (#244)
Browse files Browse the repository at this point in the history
* Run make clean after uninstall temp

* Add flag
  • Loading branch information
omegaStag committed Nov 8, 2022
1 parent 104b60e commit ad3ffeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pros/cli/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ def upgrade(ctx: click.Context, project: c.Project, query: c.BaseTemplate, **kwa
@click.option('--remove-user', is_flag=True, default=False, help='Also remove user files')
@click.option('--remove-empty-dirs/--no-remove-empty-dirs', 'remove_empty_directories', is_flag=True, default=True,
help='Remove empty directories when removing files')
@click.option('--no-make-clean', is_flag=True, default=True, help='Do not run make clean after removing')
@project_option()
@template_query()
@default_options
def uninstall_template(project: c.Project, query: c.BaseTemplate, remove_user: bool,
remove_empty_directories: bool = False):
remove_empty_directories: bool = False, no_make_clean: bool = False):
"""
Uninstall a template from a PROS project
Expand All @@ -176,6 +177,9 @@ def uninstall_template(project: c.Project, query: c.BaseTemplate, remove_user: b
analytics.send("uninstall-template")
c.Conductor().remove_template(project, query, remove_user=remove_user,
remove_empty_directories=remove_empty_directories)
if no_make_clean:
with ui.Notification():
project.compile(["clean"])


@conductor.command('new-project', aliases=['new', 'create-project'])
Expand Down

0 comments on commit ad3ffeb

Please sign in to comment.