def fill_config()

in dusty/tools/actions/git_clone/action.py [0:0]


    def fill_config(data_obj):
        """ Make sample config """
        data_obj.insert(
            len(data_obj), "source", "git@github.com:carrier-io/dusty.git",
            comment="Source repository (SSH or HTTPS URL)"
        )
        data_obj.insert(
            len(data_obj), "target", "/data/code",
            comment="Target directory"
        )
        data_obj.insert(
            len(data_obj), "branch", "master",
            comment="(optional) Branch to checkout. Default: master)"
        )
        data_obj.insert(
            len(data_obj), "depth", 1,
            comment="(optional) Limit clone depth (for lightweight clone)"
        )
        data_obj.insert(
            len(data_obj), "username", "some_username",
            comment="(optional) Username for auth"
        )
        data_obj.insert(
            len(data_obj), "password", "SomePassword",
            comment="(optional) Password for auth"
        )
        data_obj.insert(
            len(data_obj), "key", "/path/to/ssh.key",
            comment="(optional) Path to SSH private key for auth"
        )
        data_obj.insert(
            len(data_obj), "key_data", "--- SSHKeyData ---|Goes Here|--- End of SSHKeyData|",
            comment="(optional) SSH private key data for auth. Replace line breaks with '|'"
        )
        data_obj.insert(
            len(data_obj), "delete_git_dir", False,
            comment="(optional) Remove .git directory after checkout"
        )