Beispiel #1
0
def run():
    "Builds and runs cablelang project in debug mode"
    custom_info("Building...")
    system("./cable compile src/main.cb")
    custom_info("Build complete.")
    system("./target/bin")
Beispiel #2
0
def update(paths):
    "Updates one or more cablelang projects' dependencies and binaries"
    for path in paths:
        custom_info("Updating project's std library and cablelang deps...")
        update_project(path)
        custom_info("Updated project.")
Beispiel #3
0
def release():
    "Builds a cablelang project in release mode"
    custom_info("Building...")
    system("./cable release src/main.cb")
    custom_info("Build complete.")
Beispiel #4
0
def build():
    "Builds a cablelang project in debug mode"
    custom_info("Building...")
    system("./cable compile src/main.cb")
    custom_info("Build complete.")
Beispiel #5
0
def new(project_name):
    "Creates a new cablelang project"
    make_project(project_name)
    custom_info("Created project '{}'".format(project_name))
Beispiel #6
0
def info():
    "Displays info on wire package manager"
    custom_info('Wire project manager v{}'.format(__version__))
    for improvement in __improvements__:
        custom_info(improvement)
Beispiel #7
0
def info():
    "Displays info on the cable compiler"
    custom_info('Cable compiler v{}'.format(__version__))
    for improvement in __improvements__:
        custom_info(improvement)