<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="usemodule" file="file-mod.mkvi">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="m"/>
                <cd:constant type="p"/>
                <cd:constant type="s"/>
                <cd:constant type="x"/>
                <cd:constant type="t"/>
            </cd:keywords>
            <cd:resolve name="keyword-file-list"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="usemodules" file="file-mod.mkvi">
            <cd:arguments>
                <cd:keywords optional="yes">
                    <cd:constant type="m"/>
                    <cd:constant type="p"/>
                    <cd:constant type="s"/>
                    <cd:constant type="x"/>
                    <cd:constant type="t"/>
                </cd:keywords>
                <cd:resolve name="keyword-file-list"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:parameter name="cd:key">
                        <cd:constant type="cd:value"/>
                    </cd:parameter>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="usetexmodule" file="file-mod.mkvi">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="m"/>
                <cd:constant type="p"/>
                <cd:constant type="s"/>
                <cd:constant type="x"/>
                <cd:constant type="t"/>
            </cd:keywords>
            <cd:resolve name="keyword-file-list"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="module" type="environment" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="module" type="environment" variant="string" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="string-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupmodule" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="test">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="cd:key">
                    <cd:constant type="cd:value"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="moduleparameter" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-file"/>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="currentmoduleparameter" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-key"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="moduletestsection" type="environment" file="file-mod.mkvi"/>

    <cd:command name="fetchruntinecommand" file="file-mod.mkvi">
        <cd:arguments>
            <cd:csname/>
            <cd:resolve name="argument-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="luaenvironment" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="string-file"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="useluamodule" file="file-mod.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-file"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
