Пример #1
0
    print('This is the help page')


def addblock():
    lfn = input('Ledger file name: ')
    generate.new_block(lfn)


def print_current_block():
    for i in range(0, len(chain.blockchain)):
        generate.print_block(chain.blockchain, i)


def ngc():
    name = input("name>\t")
    generate.initailize_new_genesis_chain(name)


main_menu = {
    'HELP MENU': help_menu,
    'Initailize IPFS': network.ipfs_daemon_init,
    'New Genesis Chain': ngc,
    'Upload genesis chain to IPFS': ipfs.upload_g_chain,
    'ipfs l decon': ipfs.ipfs_ledger_deconstruct,
    'New block': addblock,
    'Print current block': print_current_block,
    'Quit': menu.quit_menu
}

menu.initialize_menu(main_menu, 'BB Main Menu')
Пример #2
0
def script5run():
    refresh_screen()
    menu.initialize_menu(sc_dct, "Scripts")
Пример #3
0
def mm():
    # Launch the terminal menu interface
    menu.initialize_menu(main_menu, 'BB Main Menu')
Пример #4
0
def n_menu():
    refresh_screen()
    menu.initialize_menu(n_m, 'NETWORKING MAIN MENU')
Пример #5
0
def rootinfo():
    refresh_screen()
    menu.initialize_menu(rim, "ROOT_INFO")
Пример #6
0
def dbmmfunc():
    refresh_screen()
    menu.initialize_menu(db_mm, 'DATABASE MAIN MENU')
Пример #7
0
def db_e_main_menu():
    refresh_screen()
    menu.initialize_menu(db_em, "DB_events Main Menu")
Пример #8
0
def db_c_main_menu():
    refresh_screen()
    menu.initialize_menu(db_cm, "DB_contacts Main Menu")
Пример #9
0
def db_main_menu():
    refresh_screen()
    menu.initialize_menu(db_mm, "DB Main Menu")
Пример #10
0
    'node_0': tpls_serverclient2
}

## ROOT INFO
rim = {
    'back': db_main_menu,
    'Root-File-List': rootfile_list_2,
    'rootrat': rootfile_list,
    'stable_db': stable_db,
    'Index-path': rfsm
}

## MAIN MENU
mm = {
    'Scripts': script5run,
    'NETWORKING' : n_menu,
    'DATABASE' : dbmmfunc,
    'ROOT_INFO': rootinfo,
    'QUIT': menu.quit_menu
}

######## APP INTERFACE ########
while run:
    refresh_screen()
    #menu.display_menu(mm, 'root-commands')
    menu.initialize_menu(mm, 'ROOT FILE SYSTEM MAIN MENU')