from typing import List


def encode_commands(command_list: List[str]) -> List[str]:
    """
    Encode the commands to a DisMod database so they can be
    passed to the command line.
    """
    return ['-'.join(x.split(' ')) for x in command_list]