Coherence v0.4.0 mix 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
  • --web — clean the web/coherence_messages.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

Link to this section Summary

Functions

A task needs to implement run which receives a list of command line args

Link to this section Functions

Link to this function run(args)
run([String.t] | []) :: any

A task needs to implement run which receives a list of command line args.

Callback implementation for Mix.Task.run/1.