cli_main

cli_main.py

Main module for the CLI version of the application to prompt the user to select a Tableau Workbook file (.twb) and process it using the process_twb function.

Its main function uses easygui to open a file dialog allowing the user to select a Tableau Workbook file (.twb or .twbx). Once a file is selected, it logs the file path and attempts to process the file by calling the process_twb function. If an error occurs during processing, an error message is logged, and the user is prompted to press Enter to exit the program.

If no file is selected, a warning is logged, and the user is also prompted to press Enter to exit the program.

cli_main.main()

Run the main CLI application to select and process a Tableau workbook.

This function prompts the user to select a Tableau Workbook file (.twb or .twbx) and processes it using the process_twb function.

Returns:

The path of the selected file, or None if no file is selected.

Return type:

str