custom_commands.md
January 12, 2025 ยท View on GitHub
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:
aliasis the command you type in the command line.originis 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.