Coherence v0.5.1 mix coh.clean

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

Projects created with both coh.install and coherence.install can be cleaned with this task. It will auto detect the project structure and remove the appropriate files.

Examples

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

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

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

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

# Clean installed options
mix coh.clean --options rememberable
mix coh.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
  • --messages — 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.