示例#1
0
def get_editor_config(file_path):
    """
    Returns editorConfig profile for the file at given path

    Keyword arguments:
    file_path -- /path/to/file
    """
    return exec_fn(lambda: get_properties(file_path))
示例#2
0
def build(config_file):
    """
    Runs build for the given clickable.json file

    Keyword arguments:
    config_file -- path to clickable.json
    """
    return exec_fn(lambda: _build(config_file))
示例#3
0
def create(dir_name, options):
    """
    Creates a new project

    Keyword arguments:
    options -- options for `clickable create --non-interactive ...`
    """
    return exec_fn(lambda: _create(dir_name, options))
示例#4
0
def build(config_file, install=False):
    """
    Runs build for the given clickable.json file

    Keyword arguments:
    config_file -- path to clickable.json
    install -- true to install/launch buit app
    """
    return exec_fn(lambda: _build(config_file, install))
示例#5
0
def rm(path):  # pylint: disable=invalid-name
    """Removes file or dir at the given path, returns {error} if something goes wrong"""
    return exec_fn(lambda: _rm(path))
示例#6
0
def guess_file_path(app_name, file_name):
    """Guesses file path based on Content source and file name"""
    return exec_fn(lambda: _guess(app_name, file_name))
示例#7
0
def list_files(directories):
    """Returns listing of directory content using {error, result} format"""
    return exec_fn(lambda: _list_dir(directories))
示例#8
0
def rename(path, new_path):
    """Rename file or dir, returns {error} if something goes wrong"""
    return exec_fn(lambda: os_rename(path, new_path))
示例#9
0
def test_container_exists():
    """Returns Trues if Libertine container exists, False otherwise"""
    return exec_fn(_test_container_exists)
示例#10
0
def update_container():
    """
    Upgrades built tools within a Libertine container
    """
    return exec_fn(_update_container)
示例#11
0
def ensure_container():
    """
    Creates a Libertine container to execute clickable if not exists
    """
    return exec_fn(_init_container)