Skip to content

turkman-linux/elsa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elsa (Efficient Linux Setup Assistant) installer

Simple and module based installation tool.

build:

make

testing

# for using libelsa
export LD_LIBRARY_PATH=$PWD/build
# for module path
./build/elsa -c example/elsa.conf -m example/
# Note: This will erase disk. You may loss your data!!!

Using libelsa

Using libelsa with C

#include <elsa.h>

void updater_func(char* msg){
     puts(msg);
}

int main(int argc, char** argv){
    set_update_function(updater_func);
    return module_execute("main");
}

Using libelsa with Python

from elsa import module

def updater_func(msg):
    print(msg)

if __name__ == "__main__":
    module.set_update_function(updater_func)
    return module.execute("main")