You're seeing just the macro import_commands, go back to Cqrs.BoundedContext.Commanded module for more information.
Link to this macro

import_commands(router, opts \\ [])

View Source (macro)

Imports all of a Command Router's registered commands.


  • :only - Restrict importing to only the commands listed
  • :except - Imports commands except those listed
  • :after - a list of function names and a function of one arity to run with the execution result


import_commands Example.Users.Router,
  except: [CreateUser],
  after: [
    reinstate_user: &AfterExecution.load_user/1,
    suspend_user: &AfterExecution.load_user/1