Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 764 Bytes

custom_commands.md

File metadata and controls

25 lines (21 loc) · 764 Bytes

Custom commands

To use custom commands, you need to add a similar code section in the file madock/projects/config.xml:

<custom_commands>
    <ci>
        <alias>c:i</alias>
        <origin>madock composer install _args_</origin>
    </ci>
    <ls>
        <alias>ls</alias>
        <origin>madock cli ls</origin>
    </ls>
</custom_commands>

Where:

  • alias is the command you type in the command line.
  • origin is the command that will be executed.
  • _args_ is a tag that will be replaced with the command-line arguments provided after the main command.

You can also add unique custom commands for each project separately. To do this, add the commands to the project's config file located at madock/projects/{project_name}/config.xml.