Coherence v0.3.0 Mix.Tasks.Coherence.Clean

This task will clean most of the files installed by the mix coherence.install task.

Examples

# Clean all the installed files
mix coherence.clean --all

# Clean only the installed view and template files
mix coherence.clean --views --templates

# Clean all but the models
mix coherence.clean --all --no-models

# Prompt once to confirm the removal
mix coherence.clean --all --confirm-once

# Clean installed options
mix coherence.clean --options rememberable
mix coherence.clean --options "registerable invitable trackable"

The following options are supported:

  • --all — clean all files
  • --views — clean view files
  • --templates — clean template files
  • --models — clean models files
  • --controllers — clean controller files
  • --email — clean email files
  • --web — clean the web/coherence_web.ex file
  • --migrations — clean the migration files
  • --options — Clean one or more specific options
  • --dry-run — Show what will be removed, but don’t actually remove any files
  • --confirm-once — confirm once before removing all selected files

Disable options:

  • --no-confirm - don’t confirm before removing files

Summary

Functions

Callback implementation for c:Mix.Task.run/1

Functions

run(args)

Callback implementation for c:Mix.Task.run/1.