(base_dir='.')
return Project.from_config(project_name, client, config)
Returns a fully functional `Project` instance that will be used by the CLI tools.
Returns a fully functional `Project` instance that will be used by the CLI tools.
Returns a fully functional Project instance that will be used by the CLI tools .
def get_project(base_dir='.'):
    """ Returns a fully functional `Project` instance that will be used by the CLI tools. """
    # Fetches the config options from the current directory.
    # Note/TODO: this could be improved by adding a parameter allowing to manually set the base dir.
    config = Config.from_base_dir(base_dir)

    # Determines the name of the project from the config file.
    project_name = config['name']

    # Initializes the client instance that will be used to orchestrate containers.
    client = get_client()

    return Project.from_config(project_name, client, config)
def get_project ( base_dir = '.' ) : # Fetches the config options from the current directory. # Note/TODO: this could be improved by adding a parameter allowing to manually set the base dir. config = Config . from_base_dir ( base_dir ) # Determines the name of the project from the config file. project_name = config [ 'name' ] # Initializes the client instance that will be used to orchestrate containers. client = get_client ( ) return Project . from_config ( project_name , client , config )