Skip to content

Rearrange code

Ara Gorn requested to merge rearrange-code into main

New CLI interface

To have an overview of how to use the CLI, run ./src/signal-tools --help:

Usage: ./signal-tools  {-g | --gui}         Launch the Graphical User Interface
Usage: ./signal-tools [OPTION...] [COMMAND] [ARGUMENTS...]
      OPTIONS SUMMARY
             -h | --help                    Print help information
             -v | --verbose                 Increase verbosity
             -q | --quiet                   Suppress non-error messages
             -R | --remove-data             Remove also user data
      COMMANDS SUMMARY
             -i | --install  {all | captchas | cli | desktop | signal-tools} [--only-update]
             -r | --remove   {all | captchas | cli | desktop | signal-tools}
             -V | --version  {all | captchas | cli | desktop | signal-tools}
             -l | --list-instances          List all Signal instances
             -a | --add-instance  <ID>      Add a new Signal instance
             -d | --drop-instance <ID>      Remove an existing Signal instance

New locales system

I changed $"..." translations to $(eval_gettext $"...") which allows translations using variables inside of the string.

Combined with the generate_po.sh script and gtranslator utility, the internationalization is much more easier.

New logging system

The logs are divided into 5 different categories: {error|warning|info|notice|debug} which can be selected using --verbose or --quiet args.

Making signal-tools persistent

Edited by Ara Gorn

Merge request reports

Loading