# Path: simiki/config.py
# class ConfigFileNotFound(Exception):
# def _set_default_config():
# def _post_process(config):
# def get_default_config():
# def parse_config(config_file):
# 
# Path: simiki/compat.py



import os
import sys
import ftplib
import getpass
import fabric.contrib.project as project
from fabric.api import env, local, task, settings
from fabric.colors import blue, red
from simiki import config
from simiki.compat import raw_input
    """
    message = 'Update Documentation'
    yes_ans = ('y', 'yes')

    with settings(warn_only=True):
        # Changes in the work tree to add
        add_file = '--update .'  # include tracked files
        # hack of res.return_code without warning info
        res = local('git diff --quiet --exit-code; echo $?', capture=True)
        if int(res.strip()):
            if False:  # future feature?
                # TODO: there use diff to uniform with below, and the
                # output can be formatted like `git add --dry-run --update .`
                test_res = local('git diff --name-status', capture=True)
                try:
                    _ans = raw_input('\n{0}\nAdd these files to index? (y/N) '
                                     .format(test_res.strip()))
                    if _ans.lower() in yes_ans:
                        local("git add {0}".format(add_file))
                except (KeyboardInterrupt, SystemExit):
                    pass
            else:
                local("git add {0}".format(add_file))

        # Changes in the index to commit
        res = local('git diff --cached --quiet --exit-code; echo $?',
                    capture=True)
        if int(res.strip()):
            test_res = local('git diff --cached --name-status', capture=True)
            try:

# Path: simiki/config.py
# class ConfigFileNotFound(Exception):
# def _set_default_config():
# def _post_process(config):
# def get_default_config():
# def parse_config(config_file):
# 
# Path: simiki/compat.py



# Path: simiki/conf_templates/fabfile.py
import os
import sys
import ftplib
import getpass
import fabric.contrib.project as project
from fabric.api import env, local, task, settings
from fabric.colors import blue, red
from simiki import config
from simiki.compat import raw_input

    """
    message = 'Update Documentation'
    yes_ans = ('y', 'yes')

    with settings(warn_only=True):
        # Changes in the work tree to add
        add_file = '--update .'  # include tracked files
        # hack of res.return_code without warning info
        res = local('git diff --quiet --exit-code; echo $?', capture=True)
        if int(res.strip()):
            if False:  # future feature?
                # TODO: there use diff to uniform with below, and the
                # output can be formatted like `git add --dry-run --update .`
                test_res = local('git diff --name-status', capture=True)
                try:
                    _ans = raw_input('\n{0}\nAdd these files to index? (y/N) '
                                     .format(test_res.strip()))
                    if _ans.lower() in yes_ans:
                        local("git add {0}".format(add_file))
                except (KeyboardInterrupt, SystemExit):
                    pass
            else:
                local("git add {0}".format(add_file))

        # Changes in the index to commit
        res = local('git diff --cached --quiet --exit-code; echo $?',
                    capture=True)
        if int(res.strip()):
            test_res = local('git diff --cached --name-status', capture=True)
            try:

                _ans = raw_input('\n{0}\nCommit these files? (y/N) '