mix cli.embed (CLI Mate v0.8.1)
View SourceCopies the CLI code into your own application.
Synopsis
mix cli.embed [options] <prefix> <path>
Arguments
prefix
- The root namespace for the generated modules. Example: MyApp.CLI.path
- The base directory for the generated modules. When the --extend option is not provided, the base module is definied as <path>.ex, that is outside of said directory.
Options
--extend
- When true, the base CLI module will be defined as<prefix>.Base
and will export an extend/0 macro. You will have to define your main CLI module and callrequire(<prefix>.Base).extend()
from there.When false, the command will define the main CLI module as
<prefix>
directly. Theextend/0
macro is still included. Defaults tofalse
.--moduledoc
- When true, include @moduledoc attributes in the generated code. When false, defines@moduledoc false
in all generated modules. Defaults totrue
.-f, --force
- Actually writes generated code to disk. Without this option the command only prints debug information. Defaults tofalse
.-y, --yes
- Automatically accept prompts to overwrite files. Defaults tofalse
.--help
- Displays this help.