- Python 100%
| .gitignore | ||
| README.md | ||
| toweraliases.py | ||
tni-alias-manager
Helper tool to view, edit, and backup aliases from Tower Networking Inc. (steam)
Unofficial wiki link about aliases in TNI: https://hackmd.io/@tower-network/Hk9Ni-VOgl
At the moment, this assumes file location as Linux at $HOME/.local/share/godot/app_userdata/Tower Networking Inc/settings.json
Plans to implement for Windows if anyone is able to test. A config_path option can be set manually and later set via command argument.
Functions
print- Print aliases from the configuration file.
Planned
set- Set (new or overwrite) an alias.
unset- Unset/remove an alias.
backup- Backup aliases to a file. (Aliases only, not config itself.)
- Also an option for
set/unset.
restore-Restore aliases in JSON format to TNI configuration file.
At the moment, if you set TNI_CONFIG_PATH in your env or a .env file, it will read that, but it hasn't been properly setup yet.
Logging is half-implemented to basic .log file, and logger was only a partial thought while tinkering. (Only error or warn about config file existing or non-writable by owner right now.)
Quick-Use
On Linux? You can maybe try this in your CLI for the basic print-out, if you have a config file at the Linux default mentioned above. (does create a log file toweraliases.py)
curl -sSL https://git.mana.pink/rubeae/tni-alias-manager/raw/branch/main/toweraliases.py | python3 - print